<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>See below...</div><div><br></div><div><div>Am 15.02.2009 um 22:45 schrieb Rask Ingemann Lambertsen:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Thu, Jan 22, 2009 at 09:38:41PM +0100, Lothar Behrens wrote:<br><blockquote type="cite">Has no one got the output of speech-dispatcher into a bouetooth headset ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Using mplayer -ao alsa:device=bluetooth works, but not spd-say. It &nbsp;<br></blockquote><blockquote type="cite">always comes out of the speaker.<br></blockquote><br> &nbsp;&nbsp;What does the speech-dispatcher documentation say about selecting a sound<br>card for output?</blockquote><div><br class="webkit-block-placeholder"></div><div>I havent found anyting usefull in the documentation or in the configuration files.</div><br><blockquote type="cite"><br><br> &nbsp;&nbsp;Also try some of the stuff from the wiki:<br><a href="http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#Driver_Status_3">http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#Driver_Status_3</a><br><br> &nbsp;&nbsp;Specifically these:<br><br>http://wiki.openmoko.org/images/3/3d/Btcpu_gta02.state.txt<br>http://handheldshell.com/bluetooth_pcm<br>http://opensource.wolfsonmicro.com/~gg/bluetooth-pcm/bluetooth_pcm.c<br><br> &nbsp;&nbsp;Usage would be something like this:<br><br>$ alsactl restore -f Btcpu_gta02.state.txt<br>$ ./bluetooth_pcm &amp;<br>[play some sound here]</blockquote><div><br class="webkit-block-placeholder"></div><div>using 'spd-say Hello' doesn't plays anything on my BT device.</div><br><blockquote type="cite"><br>$ killall bluetooth_pcm<br><br></blockquote><div><br class="webkit-block-placeholder"></div><div>Here it plays again on the internal speaker.</div><br><blockquote type="cite"> &nbsp;&nbsp;The interesting controls of the state file are these:<br><br>20 'Sidetone Capture Volume' -&gt; 0 (increase as needed).<br>64 'Capture Right Mux' -&gt; 'Sidetone' to route playback mixer sound into right ADC.<br>66 'Capture Right Mixer' -&gt; 'Analogue Mix Right' to record right channel<br> &nbsp;&nbsp;from right ADC.<br>67 'Capture Left Mixer' -&gt; 'Analogue Mix Right' to record left channel<br> &nbsp;&nbsp;also from right ADC.<br>68 'Playback Mixer Voice Capture Sw' -&gt; false to not mix GSM output into the<br> &nbsp;&nbsp;sidetone.<br>69 'Playback Mixer Left Capture Swi' -&gt; true to mix left output into the<br> &nbsp;&nbsp;sidetone.<br>70 'Playback Mixer Right Capture Sw' -&gt; true to mix right output into the<br> &nbsp;&nbsp;sidetone.<br><br>(Maybe look at control 22 'Capture Volume' too?)<br><br></blockquote><div><br class="webkit-block-placeholder"></div><div>Are the settings for the state file above working for you playing 'spd-say Hello' without modifying the contents from that link ?</div><div><br class="webkit-block-placeholder"></div><div>After looking into the code, is there a need for modifying the device respect to my neo ?</div></div><div><br class="webkit-block-placeholder"></div><div>This is because I call the following python script before I start mplayer with bt support.</div><div><br class="webkit-block-placeholder"></div><div><div>#!/usr/bin/python</div><div>import dbus</div><div>bus = dbus.SystemBus()</div><div>manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')</div><div>conn = manager.ActivateService('audio')</div><div>audio = dbus.Interface(bus.get_object(conn, '/org/bluez/audio'), 'org.bluez.audio.Manager')</div><div>path = audio.CreateDevice('00:1D:82:04:AA:40')</div><div>audio.ChangeDefaultDevice(path)</div><div>print path</div><div>sink = dbus.Interface(bus.get_object(conn, path), 'org.bluez.audio.Sink')</div><div>sink.Connect()</div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div>Lothar<div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">--&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Courier">|&nbsp;</font><font class="Apple-style-span" face="Courier">Rapid Prototyping&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Courier">|&nbsp;</font><font class="Apple-style-span" face="Courier">XSLT Codegeneration&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Courier">| http://</font><font class="Apple-style-span" face="Courier"><a href="http://www.lollisoft.de">www.lollisoft.de</a></font></span></font></span></font></span></font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">Lothar Behrens</font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">Heinrich-Scheufelen-Platz 2</font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">73252 Lenningen</font></font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-style-span" style="white-space: pre; "><br class="webkit-block-placeholder"></span></font></div></div><p></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></p></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>