Skip to content

Commit

Permalink
windows test ✅
Browse files Browse the repository at this point in the history
  • Loading branch information
FaiThiX authored and alexemanuelol committed Mar 15, 2024
1 parent e056113 commit 83e2e93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discordTools/discordVoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ module.exports = {
const url = `https://api.streamelements.com/kappa/v2/speech?voice=${voice}&text=${encodeURIComponent(text)}`;

if (connection) {
const resource = createAudioResource(url);
let stream = (await (await fetch(url)).blob()).stream()
const resource = createAudioResource(stream);
const player = createAudioPlayer();
connection.subscribe(player);
player.play(resource);
Expand Down

0 comments on commit 83e2e93

Please sign in to comment.