Code Monkey home page Code Monkey logo

Comments (6)

nfriedly avatar nfriedly commented on August 11, 2024

I posted my own question on the DSP stack exchange to help get a better handle on this. It includes a nice graph of the filter array :)

http://dsp.stackexchange.com/questions/37450/please-help-me-understand-this-audio-downsampling-code

from speech-javascript-sdk.

mreinstein avatar mreinstein commented on August 11, 2024

nice! So you're planning to support downsampling to 8khz too? Is this to minimize bandwidth sent to watson? I'm wondering if going below 16khz actually affects recognition quality?

from speech-javascript-sdk.

nfriedly avatar nfriedly commented on August 11, 2024

Well, the service supports 8kHz "narrowband" models and 16kHz "broadband" models. Right now, when you select a narrowband model, the audio is downsampled to 16kHz here, and then I think it gets downsampled again to 8kHz at the service. So, doing it once here should both save bandwidth and increase quality.

from speech-javascript-sdk.

mreinstein avatar mreinstein commented on August 11, 2024

Ah, right I forgot about the narrowband model. So really this is about bandwidth savings when opting into the non-broadband model. Thanks for clarification.

from speech-javascript-sdk.

mreinstein avatar mreinstein commented on August 11, 2024

@nfriedly very nice!

Question about this line:

Input audio is typically 48kHz, this downsamples it to 16kHz.

I've seen several browsers provide different sample rates. For example, Chrome right now produces 44.1khz samples. I'm wondering if this filtering logic is going to slightly distort this input?

from speech-javascript-sdk.

nfriedly avatar nfriedly commented on August 11, 2024

Oh, let me adjust that. It will reduce the cutoff point of the low-pass filter slightly, but not enough to affect human speech.

from speech-javascript-sdk.

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.