Genesys Cloud - Developer Community!

 View Only

Sign Up

Audiohook Monitor bad audio quality (.NET 8)

  • 1.  Audiohook Monitor bad audio quality (.NET 8)

    Posted 7 days ago
    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: 
    GitHub - purecloudlabs/audiohook-reference-implementation: A client tool our customers can use to validate their own Audiohook server implementation. Reference code available in node.js/Typescript.
    GitHub remove preview
    GitHub - purecloudlabs/audiohook-reference-implementation: A client tool our customers can use to validate their own Audiohook server implementation. Reference code available in node.js/Typescript.
    A client tool our customers can use to validate their own Audiohook server implementation. Reference code available in node.js/Typescript. - purecloudlabs/audiohook-reference-implementation
    View this on GitHub >
    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
    ------------------------------