Coder Social home page Coder Social logo

Comments (3)

rhurey avatar rhurey commented on June 1, 2024

Hey, thanks for reaching out!

The Speech SDK will need to be told about the format of the audio being sent in if it's not 16bit-16Khz mono.

There's a sample class here that will read the header information from a wave file and write the file to a push stream.

You can see it used here.

Please let me know if you need anything else.

from cognitive-services-speech-sdk-js.

jBernavaPrah avatar jBernavaPrah commented on June 1, 2024

Hi @rhurey,
thanks for your reply!

Unfortunately, the sample code you posted is not working with WAV files with headers created in "wave_format_extended".

I will try to change the code, to stripe those headers and push directly the audio bytes to the SDK with the hard-coded format.

In the meantime, what formats does the Azure Speech Service accept?
In the examples/tests, the audio files in the SDK source code, are in 16khz and 16bit and the same online speech tool transforms the file to 16khz and 16bit. Is this the only accepted format from the Azure Speech Recognition service?

Thanks!

from cognitive-services-speech-sdk-js.

jBernavaPrah avatar jBernavaPrah commented on June 1, 2024

Updates:
The service successfully recognized my voice when I sent the raw audio stripped by the audio extended headers and with the specific format of the audio file (48khz and 32bitpersample and PCM).

Thanks for your time!

from cognitive-services-speech-sdk-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.