0

I need to connect two application when they are are running: CMU Sphinx4 and a program written in python.

I don't want to integrate, only communicate between both apps.

I want to pass the line that was recognized by Sphinx to a .py file.

How can I do this?

Nat Ritmeyer
  • 5,634
  • 8
  • 45
  • 58
karensantana
  • 1,599
  • 4
  • 21
  • 34
  • You can write the info into a file and that the python app reads the file, you can send a TCP/IP or UDP network frame to start the interaction, you can use pipes, you can even connect them by using a database (it would be more complex though). – Luiggi Mendoza Nov 19 '12 at 22:54
  • 6
    Look into inter-process communication. There are myriad ways to do this. – Iguananaut Nov 19 '12 at 22:56
  • mmap, sockets, pipes, but just writing and reading a dumb old file will be by far the easiest, and for all practical purposes, plenty fast enough. – MikeHunter Nov 19 '12 at 23:10

0 Answers0