We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad5c9f commit ff1b093Copy full SHA for ff1b093
components/Chat.tsx
@@ -80,13 +80,13 @@ export function Chat() {
80
setIsListening(false)
81
}
82
83
- recognition.onresult = (event) => {
+ recognition.onresult = (event: any) => {
84
const lastIndex = event.results.length - 1
85
const transcript = event.results[lastIndex][0].transcript
86
setInput(transcript)
87
88
89
- recognition.onerror = (event) => {
+ recognition.onerror = (event: any) => {
90
console.error(event)
91
recognition.stop()
92
0 commit comments