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

AlsaOpen error #56

Closed
nerdyrodent opened this issue Mar 21, 2023 · 5 comments · Fixed by #58
Closed

AlsaOpen error #56

nerdyrodent opened this issue Mar 21, 2023 · 5 comments · Fixed by #58
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on

Comments

@nerdyrodent
Copy link

Describe the bug
Audio does not play using svcg

To Reproduce
Steps to reproduce the behaviour:

  1. svcg
  2. select a .wav file under "input audio path"
  3. press the "play" button

Additional context
Add any other context about the problem here.
The following error appears when trying to play:

Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->playback, alsaApi, outParams, StreamDirection_Out, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2175
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2839

the .out.wav file is produced when clicking "infer" which can then be played normally.

@nerdyrodent nerdyrodent added the bug Something isn't working label Mar 21, 2023
@34j
Copy link
Collaborator

34j commented Mar 21, 2023

I assume you can open it with librosa and can't open it with soundfile, can you modify the code to try?

data, sr = librosa.load(path)

https://github.com/34j/so-vits-svc-fork/blob/f3ec4b3711775ec18c3edf83eb3b12089f739dd2/src/so_vits_svc_fork/gui.py#L26

@34j
Copy link
Collaborator

34j commented Mar 21, 2023

If it does not fixes, please reopen.

@BlueAmulet
Copy link
Collaborator

soundfile and libsndfile don't use portaudio, which is where those error messages come from.
sounddevice does use portaudio, and the second error message indicates audio output failure.

@34j
Copy link
Collaborator

34j commented Mar 22, 2023

I see, I made a pointless change.

@34j 34j reopened this Mar 22, 2023
@34j 34j added documentation Improvements or additions to documentation wontfix This will not be worked on and removed bug Something isn't working labels Mar 22, 2023
@34j
Copy link
Collaborator

34j commented Mar 22, 2023

I forgot about #72.

@34j 34j closed this as completed Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants