Play the output audio instead of echoing the input
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
519c9d6fad
commit
15d88dfa25
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ function App() {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
const outputAudioBlob = await speechRes.blob();
|
const outputAudioBlob = await speechRes.blob();
|
||||||
const audioUrl = URL.createObjectURL(audioBlob);
|
const audioUrl = URL.createObjectURL(outputAudioBlob);
|
||||||
const audio = new Audio(audioUrl);
|
const audio = new Audio(audioUrl);
|
||||||
audio.play();
|
audio.play();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue