Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    n900 loud alarm sound

    Reply
    Page 1 of 2 | 1   2   | Next
    tfj | # 1 | 2013-09-16, 18:11 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    sixwheeledbeast | # 2 | 2013-09-16, 18:27 | Report

    If you explain what you are trying to do, there maybe something fit for purpose in the repos already.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to sixwheeledbeast For This Useful Post:
    tfj

     
    rotoflex | # 3 | 2013-09-17, 08:08 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to rotoflex For This Useful Post:
    tfj

     
    tfj | # 4 | 2013-09-23, 19:17 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    tfj | # 5 | 2013-09-23, 19:19 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    sixwheeledbeast | # 6 | 2013-09-23, 21:51 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to sixwheeledbeast For This Useful Post:
    tfj

     
    rotoflex | # 7 | 2013-09-24, 16:02 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to rotoflex For This Useful Post:
    tfj

     
    phap | # 8 | 2013-09-25, 05:27 | Report

    rotoflex: you mind to share this script ? (and I would not be surprised if you heard about plum village, but nevermind...)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    tfj | # 9 | 2013-10-01, 15:47 | Report

    [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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    tfj | # 10 | 2013-10-01, 15:52 | Report

    [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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout