1.0.0 • Published 1 year ago
audio_tran_jac v1.0.0
what is this ?
A audio transition
##Installation
Run npm i audio_tran_jac
use: ....
import useAudioTranscription from "audio_tran_jac";
const MyComponent = () => { const { message, listening, handleSpeech, handleStop } = useAudioTranscription();
return (
<button onClick={handleSpeech} disabled={listening}>
Start Recording
</button>
<button onClick={handleStop} disabled={!listening}>
Stop Recording
</button>
<p>{message}</p>
); };
export default MyComponent; ....
This will allow to display the voice message once you enter start recording and recording stops when we click stop recording.
1.0.0
1 year ago