[Gllug] Sound generation to be played by a browser

Richard Huxton dev at archonet.com
Tue Feb 1 13:34:24 UTC 2005


Andrew Farnsworth wrote:
> Alain Williams wrote:
> 
>> Hi,
>>
>> I want to dynamically generate sounds that can be played by a web 
>> browser,
>> this is so that I can hold my phone next to the speaker, click on a 
>> phone number
>> & generate the dial tones. This already works on the local machine (ie 
>> write to
>> /dev/dsp).
>>
>> To work via a web browser I should probably generate a mpeg.
>>
>> Questions:
>>
>> 1) Should I use some other format than mpeg, ie is something else better
>>   supported by more browsers ?
>>
>> 2) Any suggestions on the best (small/simple) library to generate the 
>> format
>>   in (1) ?
>>
>>  
>>
> DTMF is notoriously hard to generate and might be a bit much for 
> javascript, you might have better luck putting up a cgi that has all 16 
> [0] DTMF [1] codes prebuilt as sounds and will return a compilation of 
> them to the browser as an audio stream.

But tone-length shouldn't be a big issue if it's just being used to 
dial. You could use some javascript to play a sequence of tones fairly 
simply I'd have thought.

--
   Richard Huxton
   Archonet Ltd
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list