Active Topics

 


Reply
Thread Tools
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#1
I want to write a simple Python script that can
cause the n900 to sound an alarm, probably as loud
and piercing a shriek as possible - I'd like to be
able to hear it from 500 feet away outdoors.

I imagine there are several layers of ways to produce
such a sound; would you please sketch a bare outline
of these different methods, so I can read-up
and compare?

Thanks,
TFJ
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#2
If you explain what you are trying to do, there maybe something fit for purpose in the repos already.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#3
aplay plays an audio file at 100% volume, so just use aplay to play an audio file that's recorded as loud as you want. Be aware that you can damage the speakers.
 

The Following User Says Thank You to rotoflex For This Useful Post:
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#4
Originally Posted by sixwheeledbeast View Post
If you explain what you are trying to do, there maybe something fit for purpose in the repos already.
I'd like to be able to make the n900 howl on command
(from a Python script).
Say my script (running in the background) receives
word that a tornado is approaching - n900, sound the
alarm!
I'm not sure Maemo alarm-clock or ring-tone modules
will be of much help.
I'm looking at the APIs for alsa and pulseaudio;
python also has audio modules, which may better suit
me.

Maybe someone familiar with simple ways to sound a
loud n900 alarm, can point these out, giving me a head-start.
 
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#5
Originally Posted by rotoflex View Post
aplay plays an audio file at 100% volume, so just use aplay to play an audio file that's recorded as loud as you want. Be aware that you can damage the speakers.
Er, could you give some tips on how not to pulverize the piezos?
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#6
Originally Posted by tfj View Post
I'd like to be able to make the n900 howl on command
I'm looking at the APIs for alsa and pulseaudio;
I'd be more interested on the API for the tornado?
I could see something like this being useful to people in certain areas of the world.

Take a look at the sources for ade's cooktimer.
It's python and it calls a full volume alarm sound.

http://maemo.org/packages/view/cooktimer
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#7
Originally Posted by tfj View Post
Er, could you give some tips on how not to pulverize the piezos?
The only advice is to record the sound at the volume you want to have it played back on the N900.

I use aplay in a script that plays clock chimes every 15 minutes. It turns out that aplay's volume-setting attributes were never implemented, so it plays a file at whatever volume it's recorded at. I had to use Audacity to reduce the recorded volume of the audio files very low, as aplay just blasts them out regardless of what the N900's speaker volume is set at.
 

The Following User Says Thank You to rotoflex For This Useful Post:
Posts: 142 | Thanked: 120 times | Joined on Jul 2010
#8
rotoflex: you mind to share this script ? (and I would not be surprised if you heard about plum village, but nevermind...)
 
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#9
[QUOTE=rotoflex;1376447]The only advice is to record the sound at the volume you want to have it played back on the N900.

Has Nokia specified a maximum volume (by some standard) for the speakers?
 
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#10
[QUOTE=sixwheeledbeast;1376338]I'd be more interested on the API for the tornado?

Well my script would just receive a signal and trigger the n900, I
haven't gotten that far yet.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:18.