Re: Speech dispatcher output to bluetooth (navit) ?

2009-02-18 Thread Lothar Behrens

See below...

Am 15.02.2009 um 22:45 schrieb Rask Ingemann Lambertsen:


On Thu, Jan 22, 2009 at 09:38:41PM +0100, Lothar Behrens wrote:
Has no one got the output of speech-dispatcher into a bouetooth  
headset ?


Using mplayer -ao alsa:device=bluetooth works, but not spd-say. It
always comes out of the speaker.


  What does the speech-dispatcher documentation say about selecting  
a sound

card for output?


I havent found anyting usefull in the documentation or in the  
configuration files.





  Also try some of the stuff from the wiki:
http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#Driver_Status_3

  Specifically these:

http://wiki.openmoko.org/images/3/3d/Btcpu_gta02.state.txt
http://handheldshell.com/bluetooth_pcm
http://opensource.wolfsonmicro.com/~gg/bluetooth-pcm/bluetooth_pcm.c

  Usage would be something like this:

$ alsactl restore -f Btcpu_gta02.state.txt
$ ./bluetooth_pcm 
[play some sound here]


using 'spd-say Hello' doesn't plays anything on my BT device.



$ killall bluetooth_pcm



Here it plays again on the internal speaker.


  The interesting controls of the state file are these:

20 'Sidetone Capture Volume' - 0 (increase as needed).
64 'Capture Right Mux' - 'Sidetone' to route playback mixer sound  
into right ADC.
66 'Capture Right Mixer' - 'Analogue Mix Right' to record right  
channel

  from right ADC.
67 'Capture Left Mixer' - 'Analogue Mix Right' to record left channel
  also from right ADC.
68 'Playback Mixer Voice Capture Sw' - false to not mix GSM output  
into the

  sidetone.
69 'Playback Mixer Left Capture Swi' - true to mix left output into  
the

  sidetone.
70 'Playback Mixer Right Capture Sw' - true to mix right output  
into the

  sidetone.

(Maybe look at control 22 'Capture Volume' too?)



Are the settings for the state file above working for you playing 'spd- 
say Hello' without modifying the contents from that link ?


After looking into the code, is there a need for modifying the device  
respect to my neo ?


This is because I call the following python script before I start  
mplayer with bt support.


#!/usr/bin/python
import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),  
'org.bluez.Manager')

conn = manager.ActivateService('audio')
audio = dbus.Interface(bus.get_object(conn, '/org/bluez/audio'),  
'org.bluez.audio.Manager')

path = audio.CreateDevice('00:1D:82:04:AA:40')
audio.ChangeDefaultDevice(path)
print path
sink = dbus.Interface(bus.get_object(conn, path),  
'org.bluez.audio.Sink')

sink.Connect()


Lothar

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Speech dispatcher output to bluetooth (navit) ?

2009-02-15 Thread Rask Ingemann Lambertsen
On Thu, Jan 22, 2009 at 09:38:41PM +0100, Lothar Behrens wrote:
 Has no one got the output of speech-dispatcher into a bouetooth headset ?

 Using mplayer -ao alsa:device=bluetooth works, but not spd-say. It  
 always comes out of the speaker.

   What does the speech-dispatcher documentation say about selecting a sound
card for output?

   Also try some of the stuff from the wiki:
http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#Driver_Status_3

   Specifically these:

http://wiki.openmoko.org/images/3/3d/Btcpu_gta02.state.txt
http://handheldshell.com/bluetooth_pcm
http://opensource.wolfsonmicro.com/~gg/bluetooth-pcm/bluetooth_pcm.c

   Usage would be something like this:

$ alsactl restore -f Btcpu_gta02.state.txt
$ ./bluetooth_pcm 
[play some sound here]
$ killall bluetooth_pcm

   The interesting controls of the state file are these:

20 'Sidetone Capture Volume' - 0 (increase as needed).
64 'Capture Right Mux' - 'Sidetone' to route playback mixer sound into right 
ADC.
66 'Capture Right Mixer' - 'Analogue Mix Right' to record right channel
   from right ADC.
67 'Capture Left Mixer' - 'Analogue Mix Right' to record left channel
   also from right ADC.
68 'Playback Mixer Voice Capture Sw' - false to not mix GSM output into the
   sidetone.
69 'Playback Mixer Left Capture Swi' - true to mix left output into the
   sidetone.
70 'Playback Mixer Right Capture Sw' - true to mix right output into the
   sidetone.

(Maybe look at control 22 'Capture Volume' too?)

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Speech dispatcher output to bluetooth (navit) ?

2009-01-22 Thread Lothar Behrens
Has no one got the output of speech-dispatcher into a bouetooth  
headset ?


Using mplayer -ao alsa:device=bluetooth works, but not spd-say. It  
always comes out of the speaker.
When I use espeak -w file, the file comes with rubbish - or too fast.  
I assume it is not 44100.


Also doing so takes a while more to be transformed and may not well  
suited for navit.


Even when I take my working mplayer script that automatically connects  
to the bluetooth device,
it seems to be required to explicitly using -ao alsa:device=bluetooth  
to get bluetooth working.


Without that the sound comes from the internal speaker.

Is it right that then speech-dispatcher must be modified to support  
bluetooth device ?


Thanks

Lothar

Am 19.01.2009 um 20:55 schrieb Lothar Behrens:


Hi,

as of the success of Jabra BT3030 I thought how to let speech  
dispatcher talk to the bluetooth device too.
But I didn't found anything in the documentation and the output  
modules in the speechd.conf file does not

seem to be able to.

Is there any way to redirect the output other than with a temporary  
file ?


My experience to play /opt/Qtopia/sounds/alarm.wav with mplayer  
takes about 12 secs to play these short three beeps.
That is to much time (ok I do an scp job, but that may be the cpu  
load simulation :-)


Using that in a script in combination with spd-say would probably  
not working for navit.


It would be great to use Jabra BT3030 for navit too :-)

Any ideas ?

Thanks

Lothar

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen









___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Speech dispatcher output to bluetooth (navit) ?

2009-01-19 Thread Lothar Behrens

Hi,

as of the success of Jabra BT3030 I thought how to let speech  
dispatcher talk to the bluetooth device too.
But I didn't found anything in the documentation and the output  
modules in the speechd.conf file does not

seem to be able to.

Is there any way to redirect the output other than with a temporary  
file ?


My experience to play /opt/Qtopia/sounds/alarm.wav with mplayer takes  
about 12 secs to play these short three beeps.
That is to much time (ok I do an scp job, but that may be the cpu load  
simulation :-)


Using that in a script in combination with spd-say would probably not  
working for navit.


It would be great to use Jabra BT3030 for navit too :-)

Any ideas ?

Thanks

Lothar

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community