I am using esd because for some reason sphinx uses /dev/dsp I thought sphinx only neaded the mic and not the speakers?
What i am trying to do is use sphinx to play mp3's but sphinx is using /dev/dsp. I don't want to start and shutdown sphinx everytime I need it. Does anyone have any good ideas on how I could do this?
I have heard that some sound cards support multiple openings of /dev/dsp can anyone confirm this and if so tell me what kind of card?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sphinx is using /dev/dsp, because that is the interface to the microphone too, not only to the speakers. It is not possible to use sphinx with ESD or Arts, because neither of them provides facilities for recording, as far as I know. If you want to avoid this problem, either install a second sound card (like I did) or buy a SB Live! card, these are the only ones in the market, which allow multi-open functionality on Linux. That completely eliminates need for ESD or Arts.
Jan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks alot ! I think I will do the SB Live! idea because this thing is going in my vehicle and 2 sound cards = more power.
I read somewhere that the reason you can't use ESD or Arts is because the sphinx program is a multi-threaded program and not because of the recording thing.
Thanks again for the reply.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, sphinx is not multithreaded, as far as I know. Anyway, it does not have anything to do with Arts or ESD. At least Arts is a part of KDE, which his heavily multithreaded and has no problems at all. I think the same is true for ESD, when used with Gnome.
Arts and ESD are just an output mutliplexers to provide multi-open like capabilities on systems which do not support that. But just for output, it is not possible to record through them. I discovered this, when I wanted to modify Sphinx to use Arts. Author of Arts was thinking about adding that functionality, but it is not there yet. If you want the recording multiplexer, look for Alsa based Jack, but that is a bit of overkill for this, IMHO.
Jan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could anyone get shinx to work with esd?
I am using esd because for some reason sphinx uses /dev/dsp I thought sphinx only neaded the mic and not the speakers?
What i am trying to do is use sphinx to play mp3's but sphinx is using /dev/dsp. I don't want to start and shutdown sphinx everytime I need it. Does anyone have any good ideas on how I could do this?
I have heard that some sound cards support multiple openings of /dev/dsp can anyone confirm this and if so tell me what kind of card?
Thanks
Hi,
Sphinx is using /dev/dsp, because that is the interface to the microphone too, not only to the speakers. It is not possible to use sphinx with ESD or Arts, because neither of them provides facilities for recording, as far as I know. If you want to avoid this problem, either install a second sound card (like I did) or buy a SB Live! card, these are the only ones in the market, which allow multi-open functionality on Linux. That completely eliminates need for ESD or Arts.
Jan
Thanks alot ! I think I will do the SB Live! idea because this thing is going in my vehicle and 2 sound cards = more power.
I read somewhere that the reason you can't use ESD or Arts is because the sphinx program is a multi-threaded program and not because of the recording thing.
Thanks again for the reply.
No, sphinx is not multithreaded, as far as I know. Anyway, it does not have anything to do with Arts or ESD. At least Arts is a part of KDE, which his heavily multithreaded and has no problems at all. I think the same is true for ESD, when used with Gnome.
Arts and ESD are just an output mutliplexers to provide multi-open like capabilities on systems which do not support that. But just for output, it is not possible to record through them. I discovered this, when I wanted to modify Sphinx to use Arts. Author of Arts was thinking about adding that functionality, but it is not there yet. If you want the recording multiplexer, look for Alsa based Jack, but that is a bit of overkill for this, IMHO.
Jan