Tech
How to fix punctuation in speech-to-text and LLM output without calling a model
If you've ever wired up the Web Speech API and rendered the result straight to the page, you've seen this:
const recognition = new ( window . SpeechRecognition || window . webkitSpeechRecognition )()
recognition . lang = ' en-US '
recognition . onresult = ( event ) => {
const transcript = event . results [ 0 ][ 0 ]. transcript
console . log ( transcript ) // 'can you send me the report'
}
recognition ....
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to