Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9134427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:39:27+00:00 2026-06-17T08:39:27+00:00

I am a Python and Lisp guy learning C++ and have come across a

  • 0

I am a Python and Lisp guy learning C++ and have come across a need to “concatenate” for lack of more precise terms, 3 C++ programs. I am unsure what would be the best way to do the following:

1) pocketsphinx takes input from the microphone, does real-time automatic speech recognition, outputs text to terminal, I want to send the output to the input of:

2) Chatscript, a chat program, which parses the incoming text (at the moment from keyboard) and generates a response which is sent to terminal, I want to send the output to the input of:

3) Festival, a text to speech that reads text input from the terminal and generates a voice output of that text.

I am exploring different ways to do this, as I understand it I could run pipes from pocketsphinx to Chatscript to festival, but some of what I’ve read leads me to believe this is a less than efficient way due to overhead. Also, regarding pipes, am I correct in thinking I would set 2 one way pipes (pid == 0) with the text outputs?

I think I could (once I learn a great deal more) combine all 3 programs (they are all open source) by essentially determining required libraries/files etc and “concatenating” the 3 void main()’s while changing the output statements?

Could someone offer some guidance/tutelage on this and opine as to which of these (or suggest other methods?) would be the most economical and effective?

regards, Richard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:39:28+00:00Added an answer on June 17, 2026 at 8:39 am

    Watch for the cout or printf in the source, and add it to a buffer string variable, that will allow you to each time the buffer fills in, you can call the next program and execute it with the buffer gotten. If you dont need the “real time” processing, you can do what @zch pointed out, since if i recall (i might be wrong) pipes need the program to end before send the data to the next binary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I come from a background of C, Fortran, Python, R, Matlab, and some Lisp
Do you have any advice for writing a Lisp dialect/interpreter in Python? I'd like
I'm porting some of my python scripts to Common Lisp. I need to get
Languages like Python, MATLAB, E-Lisp have this nice facility for doc-strings. With this feature
I have a python dict as below mymap={'java':40,'haskell':60,'ruby':50,'python':70,'scala':30,'lisp':80,'scheme':75} I have the keys put in
I am translating some code from lisp to Python. In lisp, you can have
I have emacs 24.1.1, which comes with GNU's python.el in byte-compiled form at emacs/24.1/lisp/progmodes.
I have the following lisp file, which is from the UCI machine learning database
Basically, I'd like to do the following, only using Common Lisp instead of Python:
Python 3 really complicated the whole file reading process, when you have a binary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.