I need to play pre-recorded sounds and voice messages to audio channel or speaker.
Which file format I have to use for sound storage in module memory: .wav or something else, taking in mind that sound will be recorded in my PC by microphone and converted to PCM.
Maybe you will want to read this thread?
I red it first.
I can record PCM from microphone or audio channel, but I need something else – to prepare short voice notificatiom messages, such as "Warning! Battery is low" in PC and transfer to module. So 8bit / 8kHz / mono sampling is clear but what file formant to use in PC to have possibility to read it and play in module.
Microphone record (ambient noise without speech) contains 0x00s and 0xFFs mixed in (by my opinion) randomly. Speech gives other values.
WAV PCM 8 bit 8 kHz? There are many programs to convert to such format, I think VLC can do it, or check some free trials from the Internet, for example start here.
So I have to convert recorded sound to WAV PCM and seve to module.
The python program will open end read that file and will send its contents to speaker or audio channel?
That’s the plan!
Many thanks Cosmin. Finally< I will have talking vehicle and personal trackers.
.wav file, PCM, 8kHz, 8 bits, mono, 12 sec duration is 557KB!!!
What I am missing?
Produced with what? Can you attach the file (try to change the file extension with .pdf for example).
Sorry, yesterday late evening I found my mistake. 2 sec record is exactly 16044 bytes – 16000 samples and 44 bytes file header.
I have to record separate words in files or in separate lines in one file in memory and read them in string variables or dictionary and play with related pause.
Hit enter to search or ESC to close
Knowledge Base & Download Zone