Play Voice from wifi
Posted: Fri Nov 02, 2018 7:52 am
Hi to every body this is my first access to this forum and I send to all a very big HELLO!
I go directly to what I'm doing now. I should want to speech by ESP32 a voice cames in from wifi with many samples. I saw many examples on esp32 voice but I didn't find what I need.
I saw for example esp32 speeches a file internal its code and it looks loke a wav file with also the header. When I try to put my wav file I heard only big noise. I compared the two wav files and thay have very different codecs also if both are 8Khz 16bit mono.
The code I discover are in the following (only part of files):
80 80 80 80 80 81 81 81 81 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E 7D 7E 7D 7E 7E 7E 7E 7E 7E 7E 7E 7E 7D 7D 7D 7D 7E 7E 7E 7F 7F 7F 80 80 80 80 81 81 81 82 82 82 83 82 82 83 83 83 84 84 84 84 85 85 85 85 84 84 84 84 83 83 83 82 82 83 82 82 82 82 82 and this is OK for ESP 32
and this:
F4 FF FC FF F8 FF 08 00 F3 FF FE FF F1 FF FB FF E9 FF 03 00 F5 FF 08 00 F6 FF F3 FF FB FF FC FF 04 00 F8 FF 00 00 E8 FF 01 00 E5 FF ED FF FF FF ED FF 00 00 F8 FF FF FF F5 FF F2 FF E7 FF F3 FF F7 FF FC FF F8 FF ED FF FA FF FE FF F2 FF ED FF E4 FF E0 FF 00 00 F7 FF FF FF 0B 00 EB FF 0D 00 F2 FF 01 00 10 00 FE FF 0B 00 FB FF F5 FF 0B 00 this is NOT OK for ESP32
As you can see the codec is different also if both are played from Audacity but no from ESP32.
I understand with this very little piece of file is not enough to say this or that, but believe me the codifica of bytes are different. I would like to give them a name and how can I translate by code from one to another.
Thanks alot
I go directly to what I'm doing now. I should want to speech by ESP32 a voice cames in from wifi with many samples. I saw many examples on esp32 voice but I didn't find what I need.
I saw for example esp32 speeches a file internal its code and it looks loke a wav file with also the header. When I try to put my wav file I heard only big noise. I compared the two wav files and thay have very different codecs also if both are 8Khz 16bit mono.
The code I discover are in the following (only part of files):
80 80 80 80 80 81 81 81 81 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E 7D 7E 7D 7E 7E 7E 7E 7E 7E 7E 7E 7E 7D 7D 7D 7D 7E 7E 7E 7F 7F 7F 80 80 80 80 81 81 81 82 82 82 83 82 82 83 83 83 84 84 84 84 85 85 85 85 84 84 84 84 83 83 83 82 82 83 82 82 82 82 82 and this is OK for ESP 32
and this:
F4 FF FC FF F8 FF 08 00 F3 FF FE FF F1 FF FB FF E9 FF 03 00 F5 FF 08 00 F6 FF F3 FF FB FF FC FF 04 00 F8 FF 00 00 E8 FF 01 00 E5 FF ED FF FF FF ED FF 00 00 F8 FF FF FF F5 FF F2 FF E7 FF F3 FF F7 FF FC FF F8 FF ED FF FA FF FE FF F2 FF ED FF E4 FF E0 FF 00 00 F7 FF FF FF 0B 00 EB FF 0D 00 F2 FF 01 00 10 00 FE FF 0B 00 FB FF F5 FF 0B 00 this is NOT OK for ESP32
As you can see the codec is different also if both are played from Audacity but no from ESP32.
I understand with this very little piece of file is not enough to say this or that, but believe me the codifica of bytes are different. I would like to give them a name and how can I translate by code from one to another.
Thanks alot