whisper API giving me an error Property API_KEY doesn't exist #17
Unanswered
jpreethi1522
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello, first never include your token in public like this. I would advice you to read about .env, the token should be in ur .env. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i tried using this module but its giving me an error when i provide the api key
please help me how to resolve it
import { useWhisper } from '@chengsokdara/use-whisper'
const App = () => {
const {
recording,
speaking,
transcribing,
transcript,
pauseRecording,
startRecording,
stopRecording,
} = useWhisper({
apiKey: kd-uvhishsdbvjhdbvuydsbcjdhbvujsdhbv,
})
return (
Recording: {recording}
Speaking: {speaking}
Transcribing: {transcribing}
Transcribed Text: {transcript.text}
<button onClick={() => startRecording()}>Start
<button onClick={() => pauseRecording()}>Pause
<button onClick={() => stopRecording()}>Stop
)
}
export default App
im getting error like
ERROR ReferenceError: Property 'kduvhishsdbvjhdbvuydsbcjdhbvujsdhbv' doesn't exist
This error is located at:
in App (created by withDevTools(App))
in withDevTools(App)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in main(RootComponent), js engine: hermes
Beta Was this translation helpful? Give feedback.
All reactions