Comments (8)
wavefile": "^6.13.0
import WaveFile from 'wavefile'
import RNFS from 'react-native-fs'
RNFS.readFile(path, 'base64').then(data => {
let wav = new WaveFile()
wav.fromBase64(data)
}
the path is the wav file path.
I try to load data to buffer and get the same error
from wavefile.
What version of WaveFile are you using? Also, could you give me more information about how WaveFile is being used in your React Native app?
Cheers!
Rafael
from wavefile.
Could you try installing [email protected] and see if this is still an issue on your build?
Cheers!
Rafael
from wavefile.
Now when I do let wav = new WaveFile()
, I got TypeError: _wavefile2.default is not a constructor
from wavefile.
In version 6:
WaveFile = require('wavefile');
In version 7:
WaveFile = require('wavefile').WaveFile;
Sorry not to mention that earlier. Did this help?
from wavefile.
Yes it's working now. Thank you very much! Are you going to release 7 with the fix?
from wavefile.
:D
Yes, but there are more things to do before the release. I'm actually working on byte-data and riff-chunks (dependencies of WaveFile) to fix memory issues. Version 7 will be out after that.
Cheers!
Rafael
from wavefile.
Fixed in 7.0.0
from wavefile.
Related Issues (20)
- How to concat two wav files? HOT 2
- ES6 import syntax results in TypeError: wavefile_1.default is not a constructor HOT 1
- Recognize End Points for Cue Markers HOT 7
- In Firefox and Safari => Error: Not a supported format HOT 3
- mpeg and cart support? HOT 3
- mulaw extensible riff fmt header HOT 7
- how to convert wave file to alaw using python?
- Allow smpl chunk to be read via CLI
- Bug in read of RIFF signature..? HOT 2
- waveFile.toBuffer as 16 bit array? HOT 7
- npm run build failing
- How to get duration of wav file? HOT 3
- getSamples() has wrong return type declaration
- Issue converting Twilio Media Stream (mulaw) to PCM for @aws-sdk/client-transcribe-streaming HOT 1
- How are you @rochars? HOT 1
- use explicit path in imports
- Do less things: remove base64 stuff
- use private class methods instead of `@private`
- Create wav file from socket buffer HOT 1
- Compressing and converting wav chunks
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 wavefile.