Hello everyone,
I hope someone can help me :).
I have integrated the Audiohook Monitor, but I am not getting a usable WAV audio file. Only PCMU with a rate of 8000 is offered. I am currently only testing with the external channel, but after decoding and writing the WAV file (.NET 8), the quality is so poor that nothing can be understood.
Even the example from Genesys doesn't help me:
Extract from my code:
using var bw = new BinaryWriter(stream, Encoding.ASCII, true);
bw.Write(Encoding.ASCII.GetBytes("RIFF"));
bw.Write(36 + dataLength);
bw.Write(Encoding.ASCII.GetBytes("WAVE"));
bw.Write(Encoding.ASCII.GetBytes("fmt "));
bw.Write((Int32)16);
bw.Write((short)1);
bw.Write(channels);
bw.Write((Int32)sampleRate);
bw.Write(sampleRate * channels * bitsPerSample / 8);
bw.Write((short)(channels * bitsPerSample / 8));
bw.Write(bitsPerSample);
bw.Write(Encoding.ASCII.GetBytes("data"));
bw.Write(dataLength);
Thanks and kind regards
Severin
#Integrations------------------------------
Severin Eggermann
Systemspezialist
------------------------------