mp3recorder | android recorder mp3 using mp3lame | Audio Utils library
kandi X-RAY | mp3recorder Summary
kandi X-RAY | mp3recorder Summary
android recorder mp3 using mp3lame
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mp3recorder
mp3recorder Key Features
mp3recorder Examples and Code Snippets
Community Discussions
Trending Discussions on mp3recorder
QUESTION
So I'm working with recording audio from browser for which it is using Mic recorder API, now this Api after recording returns a blob url which I send to my project's django backend but the problem is how to get that audio file back from blob url at backend?
For your reference this is how it generate blob url:
...ANSWER
Answered 2021-Apr-02 at 07:54So I found solution for this problem, just include this line of code to convert your blob url to mp3/.wav file and then send it to backend.
QUESTION
For the web app I'm building in React, I need to record audio and be able to somehow put that recorded audio in the app's global state so I can use and manipulate that recorded audio in different components of the app.
My global state is setup using React Hooks (made and managed with useReducer, createContext, useContext) and I believe Hooks only work for functional components, not class components.
So the issue I'm running up against is that every tutorial I've followed to get my browser microphone to work uses class components (like the code below), not functional components. And I'm assuming that this is for good reason because when I've tried to translate these class components into functional components, I get the error: "cannot read property 'finish' of 'undefined'"
Are there ways to take this audio data (blobURL) and pass it to my global state?
Alternatively (and ideally), is there a way to use the microphone to record audio in a functional component instead of a class component?
...ANSWER
Answered 2021-Feb-22 at 23:24Your class-based components can still "consume" the context but the syntax is a little more involved than simply using a useContext
React hook.
For your case you would import your global state context Context
and render the component that needs to access the context via a function child. The child component would then need consume these context values via props.
Some classed-based component:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mp3recorder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page