Giter VIP home page Giter VIP logo

pcm-stream's Introduction

pcm-stream

A transform stream for converting audio encoded as 32-bit floats to 16-bit intergers.

npm install pcm-stream

Usage

var pcm = require('pcm-stream');

var stream = pcm();

pcm.on('data', function(data) {
	console.log(data);
});

pcm.write(new Buffer([0, 0, 0, 0]));
pcm.end();

Also works in browsers with browserify.

pcm-stream's People

Contributors

kapetan avatar

Stargazers

 avatar

Watchers

 avatar

pcm-stream's Issues

Google voice recognition compatable?

I'm trying to use an audio stream from getUserMedia with google's text to speech API inside of an electron app and came across your modules. They look close to what I want, but they aren't working and I was wonder if you had any insights into why maybe?

I was able to get a working prototype using an audio stream using the https://github.com/gillesdemey/node-record-lpcm16 module and piping that stream into Google's speech module (Example: https://github.com/bcomnes/speech-test/blob/master/sox_renderer.js)

So I tried something similar using this module but it doesn't seem to work (Example: https://github.com/bcomnes/speech-test/blob/master/renderer.js)

Any idea what the differences are between the streams produced by Sox + https://github.com/gillesdemey/node-record-lpcm16 and the ones this module puts out?

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.