Comments (1)
Changing 'fileType': 'wav'
should do it on Mac or Windows with SoX.
So we use the 'rec' command which uses SoX. On Linux we are using alsa tools 'arecord'. For SoX, you need to check how to record a wave file by reading up here: http://sox.sourceforge.net/soxformat.html
Excerpt here:
.wav (also with −t sndfile)
Microsoft .WAV RIFF files. This is the native audio file format of Windows, and widely used for uncompressed audio.
Normally .wav files have all formatting information in their headers, and so do not need any format options specified for an input file. If any are, they will override the file header, and you will be warned to this effect. You had better know what you are doing! Output format options will cause a format conversion, and the .wav will written appropriately.
SoX can read and write linear PCM, floating point, μ-law, A-law, MS ADPCM, and IMA (or DVI) ADPCM encoded samples. WAV files can also contain audio encoded in many other ways (not currently supported with SoX) e.g. MP3; in some cases such a file can still be read by SoX by overriding the file type, e.g.
play −t mp3 mp3−encoded.wav
Big endian versions of RIFF files, called RIFX, are also supported. To write a RIFX file, use the −B option with the output file options.
You can see how we are calling the underlying 'rec' by looking at the mic.js file available at: mic/lib/mic.js
Clearly we call it with -t fileType
so if you change it to 'wav'
it should work.
from mic.
Related Issues (20)
- WAV header not required
- Write .wav file format with header. HOT 2
- WAV format generates slowed down audio files? HOT 1
- AUDIO INPUT NOT PAUSING ON PAUSECOMPLETE HOT 1
- audio open error HOT 3
- After some time, "recording audioProcess has exited with code = 0" HOT 7
- Error: write after end HOT 2
- exitOnSilence doesn't work when Audio Gain is set to other than 1 HOT 1
- Error installing on Raspberry Pi Zero - ELOOP: too many symbolic links encountered
- Version Update HOT 1
- 'plughw:1,0' is a bad default for the 'device' option
- Issue on macOS
- Detect sounds HOT 1
- Mic and Azure Speech to Text HOT 2
- After a while, arecord overruns HOT 1
- Mic on windows ignores bitwidth setting HOT 1
- Linux signals not supported on windows HOT 1
- Invalid value for card error HOT 1
- Stream .on('data') always passes Uint8Array to callback
- How to get a valid wav file from micInputStream.on('data') ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mic.