Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError - not giving voice_id causes 500 in api #523

Open
sentry-io bot opened this issue Jun 26, 2023 · 0 comments
Open

AssertionError - not giving voice_id causes 500 in api #523

sentry-io bot opened this issue Jun 26, 2023 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jun 26, 2023

Sentry Issue: STUDIO-BACKEND-J5

AssertionError: 
(7 additional frame(s) were not displayed)
...
  File "rest_api/baseview.py", line 16, in dispatch
    return await super().dispatch(request, *args, **kwargs)
  File "rest_api/samples.py", line 271, in list_xtts
    speaker_or_voice = await get_speaker_or_xtts_voice(request.user, voice_id)
  File "concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "rest_api/samples.py", line 192, in get_speaker_or_xtts_voice
    assert voice_id

To simulate to not give voice_id
Api docs state voice_id is required but examples do not generate it causing confusion on user.

curl --request GET
--url 'https://app.coqui.ai/api/v2/samples/xtts/?page=1&per_page=10'
--header 'accept: application/json'
--header 'authorization: Bearer YOUR_TOKEN'

Similarly you need to give a voice_id to render/create_sample ..
curl --request POST
--url https://app.coqui.ai/api/v2/samples/xtts/render/
--header 'accept: application/json'
--header 'authorization: Bearer YOUR_TOKEN'
--header 'content-type: application/json'
--data '
{
"speed": 1,
"text": "hello",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants