I have designed an amplifier and microphane system for vehicles. I want to add emergency sounds like police, ambulance fire, etc. and air horn , normal horn. But actually i dont have any exprience about generate sound with stm microcontroller. I controlled other things on board with stm32f0. Does anybody could help me to how can i genarate these sounds?
I have designed an amplifier and microphane system for vehicles. I want to add emergency sounds like police, ambulance fire, etc. and air horn , normal horn. But actually i dont have any exprience about generate sound with stm microcontroller. I controlled other things on board with stm32f0. Does anybody could help me to how can i genarate these sounds?
There are libraries to process WAV audio files. Just record the siren(s) you like (or pull them off the web or generate them with a waveform generator app, save as a WAV file and play it with the DAC on the STM32F
There are libraries to process WAV audio files. Just record the siren(s) you like (or pull them off the web or generate them with a waveform generator app, save as a WAV file and play it with the DAC on the STM32F
Thanks for the comment. Firstly i think record and play audio files, but all siren devices generate the sounds and actually i dont know how i generate them.
Thanks for the comment. Firstly i think record and play audio files, but all siren devices generate the sounds and actually i dont know how i generate them.
Old "sirens" had motors that turn, compress air, push the air past reeds that vibrate to produce sound.
Newer either have circuits that produce a waveform (from an oscillating circuit, a Wave-like File from a computer-generated waveform, or a recording converted to an a diode file - amplify it through an efficient and directional horn-style speaker. Whether it is a
We don't know if your sirens produce only two frequencies (dee, doo, dee, doo) like in some countries or produce continuous sweeping frequencies up and down. In Canada, a fire truck also has a very loud low frequency blast.
Thanks for the comment. Firstly i think record and play audio files, but all siren devices generate the sounds and actually i dont know how i generate them.
since the 1970s, these sounds have been made by cascaded voltage controlled oscillators (a "slow one" controlling the frequency of the audio one) the speed setting of the "slow" oscillator changes the warble rate. by changing the output waveform shape from ramps to square waves you change from a warbling sound (weeeeeooowwww) to a hi-low sound (deeedooodeeedooo)
what's really funny is when there's a movie set in a time before electronic sirens, like the 1940s or 1950s, but they use modern VCO based sirens... oooops.... please arrest the sound effects guy....
I have designed an amplifier and microphane system for vehicles. I want to add emergency sounds like police, ambulance fire, etc. and air horn , normal horn. But actually i dont have any exprience about generate sound with stm microcontroller. I controlled other things on board with stm32f0. Does anybody could help me to how can i genarate these sounds?
I will try with playing wav file as gophert's recomendation. Now i search prafessional wav files for these siren sounds. When i find it i will share here maybe it will help someone.