remove unused stuff
This commit is contained in:
parent
233d26ae90
commit
03bddd2180
1 changed files with 0 additions and 22 deletions
22
src/App.jsx
22
src/App.jsx
|
@ -175,28 +175,6 @@ Teacher: Good job! How about Magic – something special and powerful.
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// const speechRes = await fetch('https://api.openai.com/v1/audio/speech', {
|
||||
// method: 'POST',
|
||||
// headers: {
|
||||
// 'Authorization': `Bearer ${OPENAI_API_KEY}`,
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// body: JSON.stringify({
|
||||
// model: 'tts-1-hd',
|
||||
// voice: 'nova',
|
||||
// input: reply
|
||||
// })
|
||||
// });
|
||||
// const outputAudioBlob = await speechRes.blob();
|
||||
// const audioUrl = URL.createObjectURL(outputAudioBlob);
|
||||
// const audio = new Audio(audioUrl);
|
||||
// audio.play();
|
||||
|
||||
// audio.onended = () => {
|
||||
// // Do nothing here — wait for user to press the button
|
||||
// };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue