🗣️ fix: update API endpoint for fetching audio in StreamAudio (#3307)

This commit is contained in:
Danny Avila 2024-07-09 09:16:16 -04:00 committed by GitHub
parent 605a8ae8c9
commit 87bdbda10a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ export default function StreamAudio({ index = 0 }) {
}
console.log('Fetching audio...', navigator.userAgent);
const response = await fetch('/api/files/tts', {
const response = await fetch('/api/files/speech/tts', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
body: JSON.stringify({ messageId: latestMessage?.messageId, runId: activeRunId, voice }),