maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   how can I play sound on phone's speaker from command line? (https://talk.maemo.org/showthread.php?t=68740)

nas 2011-01-21 20:52

how can I play sound on phone's speaker from command line?
 
Hello,

I want to play a .wav file ( or .mp3 ) using command line. The problem is that bluetooth hands free is connected, so the file sounds to the BT earphone, and not in speaker. I tried :

Code:

gst-launch  playbin2 uri=file:///root/pigeon.wav
but I listen it on BT handsfree, and not on phone's loud speaker.

also I tried to put pulsesrc device=source.hw1 parameter without any luck.


the hole idea is to make a kind of alarm when the signal from bluetooth is lower than a specific level, ( usefull if you forget it ).

thank you!


All times are GMT. The time now is 01:38.

vBulletin® Version 3.8.8