Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirohonda committed Aug 18, 2024
1 parent 9a2dbec commit 1088740
Show file tree
Hide file tree
Showing 2 changed files with 956 additions and 519 deletions.
12 changes: 1 addition & 11 deletions apps/fe-sys-design/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@ function matchSpeech(targetSentence: string) {

recognition.onresult = (event) => {
const recongnisedOutcome = event.results[0][0].transcript
console.log(`checking event object: ${JSON.stringify(event.results)}`)
console.log(
`checking event object, results[0]: ${JSON.stringify(event.results[0])}`
)
console.log(
`checking event object, results[0][0]: ${JSON.stringify(event.results[0][0])}`
)

console.log(`checking the recognised outcome: ${recongnisedOutcome}`)
console.log(
`checking target sentence: ${targetSentence.toLowerCase().replace(/[^a-z0-9\säöüß]/g, '')}`
Expand All @@ -100,7 +94,3 @@ function matchSpeech(targetSentence: string) {
recognition.stop()
}
}

window.speakGerman = speakGerman
window.sayGenau = sayGenau
window.matchSpeech = matchSpeech
Loading

0 comments on commit 1088740

Please sign in to comment.