GithubHelp home page GithubHelp logo

sivaprakashdesingu / react-voice-recorder Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 52.0 2.73 MB

This (react-voice-recorder) is a JavaScript library for React Applicaiton which will be used to record voice as audio and download the same.

Home Page: https://codesandbox.io/s/react-voice-recorder-mydov?file=/src/App.js

License: MIT License

JavaScript 64.75% CSS 26.87% HTML 8.38%

react-voice-recorder's People

Contributors

dependabot[bot] avatar guftall avatar ozdemiremrah avatar sivaprakashdesingu avatar taha-moghaddam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-voice-recorder's Issues

How to customize

Hey, thanks for creating this package. I'm trying to customize the package to use my own UI. To do this, I need a way to call the startRecording and stopRecording methods from my own buttons. Can you provide any insight on how to do this?

I cannot save the file into a variable.

After recording i want to save the audio file into a variable like the actual file. File url will not work. because i want to use this with whisper api to translate and i need to send the actual file cannot send url.

mimeTypeToUseWhenRecording - what types?

Hello,

Does this record only in the default audio type for the browser, or can it support more audio types? I would like to record on the desktop web app, and play it back on iOS or Android devices.

Thank you,

Barry

Failure when running Record and pressing clear

Steps to reproduce:

press record, press clear, press record.

Error failed to start recording.

I have a fix ready that I have implemented locally. If you will allow me to contribute I will submit a pull request.

Forked repo

Hi I love your module but I need to expand functionality like css and another control on the recorder to toggle or not the recorder.

So I fork your repo install in my node react app but I am not able to use your module forked.
When I install your version in my node module it comes compiled but when I install my version It comes not compiled so I try running npm build but got an error.

Please can you give me advice to compile it ?

Thanks

Icons not showing up

Hi, everything works fine - except that the Mic icon and the Close icon show their alt text... am I missing a library/CSS?

ERESOLVE unable to resolve dependency tree

npm i react-voice-recorder
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/react-voice-recorder
npm ERR! react-voice-recorder@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Cannot read properties of undefined (reading 'start')

<Recorder
record={true}
title={"New recording"}
audioURL={audioDetails.url}
showUIAudio ={true}
hideHeader={true}
// handleOnChange={(value) => handleOnChange(value, 'firstname')}
handleAudioStop={data => handleAudioStop(data)}
mimeTypeToUseWhenRecording={audio/webm}

/>

I don't append blob for to send api

I don't append blob for to send api. In server receive fd = null.

    const [audioDetails, setAudioDetails] = useState({
        url: null,
        blob: null,
        chunks: null,
        duration: {
            h: 0,
            m: 0,
            s: 0
        }
    })
    const handleAudioUpload = (file) => {
        var fd = new FormData();
        const blob = new Blob(audioDetails.chunks, { 'type': 'audio/ogg; codecs=opus' });
        fd.append('audio', blob);

        const options = {
            method: 'POST',
            headers: {
                'Content-Type': 'application/json',
                Accept: 'application/json',
                Authorization: bearerToken()
            },
            body: fd
        }
        fetch('/api/test', options)
            .then((xx) => console.log(xx))
   }

Start Event callback

Can someone please let me know how to get the startRecording callback? Right now, we only have options for AudioStop...

Where is handleAudioUpload() defined?

I want to refactor this package so that handleAudioStop() takes a file as input rather than the blob/audio details (instead of handleAudioUpload). Essentially, I want to get rid of the upload button, as this is part of a form. I want to do the uploading of the file at the end of the form along with the other data.

Do you know what steps I can take to do this? I cannot find where the audio is converted from a blob to file.

blob not existed

Send blob objects to Nodejs server, but the server receives empty objects. Is there a reason?

Audio blob file record conversion for mp3?

Hi thanks for creating this package been working with it for a while works awesome as per my requirement, mate currently the output audio is given as a blob file, is there a way to implement audio file conversion to conventional audio types like mp3?

component isn't showing on mobile tested in(chrome,google,samsung internet)

the recorder works fine on any browser tested on google chrome,safari (both in desktop mode and mobile responsive mode)

but tried to run a preview using localtunnel on my phone the recorder isn't showing at all
a tested it in chrome in default internet browser and in the google app, same negative result

hope you can fix it or suggest a fix it

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.