sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.83k stars 922 forks source link

Sorry, the Audio Server failed to start... #3383

Open linmuwx opened 8 months ago

linmuwx commented 8 months ago

Sorry, the Audio Server failed to start... Please try changing your default OS audio input & outputs. Note, the audio rate of the inputs & outputs must be the same. For the curious among you, Sonic Pi uses the SuperCollider Audio Server to generate its sounds. By default it will connect to your default system audio input and outputs. Unfortunately SuperCollider is having problems starting correctly. You can read the full error log below which should explain why. To fix this you can try changing your default operating system audio inputs and outputs (ensuring they have the same audio rate).

What can I do about it? macbook m1

linmuwx commented 8 months ago

I've changed to the system default inputs and outputs but it still doesn't work!

samaaron commented 8 months ago

hi @linmuwx,

Sorry you're having issues. Please could you share the contents of the full error log so we can see what happened on your system?

linmuwx commented 8 months ago

Sorry, the Audio Server failed to start... Please try changing your default OS audio input & outputs. Note, the audio rate of the inputs & outputs must be the same. For the curious among you, Sonic Pi uses the SuperCollider Audio Server to generate its sounds. By default it will connect to your default system audio input and outputs. Unfortunately SuperCollider is having problems starting correctly. You can read the full error log below which should explain why. To fix this you can try changing your default operating system audio inputs and outputs (ensuring they have the same audio rate). Advanced Users - you may manually override this and further configure how SuperCollider boots by editing the file: /Users/muwei/.sonic-pi/config/audio-settings.toml SuperCollider Log Number of Devices: 3 0 : "MacBook Pro麦" 1 : "MacBook Pro扬" 2 : "VB-Cable"

"MacBook Pro麦" Input Device Streams: 1 0 channels 1

"MacBook Pro扬" Output Device Streams: 1 0 channels 2

SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512 SuperCollider 3 server ready.

linmuwx commented 8 months ago

I've downloaded many versions and only 3.1.0 works.

linmuwx commented 8 months ago

macbook m1 version 14.2.1

linmuwx commented 8 months ago

But 3.1.0 is very strange, I open the webpage to watch a video for a while, then come back, there is no sound output, all the other sounds are normal, just this one no sound

samaaron commented 8 months ago

Apologies - I'm not sure what's going wrong on your system.

Could you please post the full logs found in ~/.sonic-pi/log (all the .log files).

Also, are you using the Intel or Apple Silicon build?

linmuwx commented 8 months ago

apple arm64

samaaron commented 8 months ago

Could you try the intel build and see if that works for you? Also, it would be nice to see the logs.

samaaron commented 6 months ago

Hi, could you try the recently released v4.5.1 and let me know if that helps things?

https://github.com/sonic-pi-net/sonic-pi/releases/tag/v4.5.1

pastalsugo commented 5 months ago

I have the same error and haven't been able to solve it. sonic pi started showing this error when i attached my computer to an audio card of a friend, a focusrite scarlett. I have win11 on thinkpad. Uninstalled and reinstalled few times sonic pi v4.5.1

the error says

Sorry, the Audio Server failed to start... Please try changing your default OS audio input & outputs. Note, the audio rate of the inputs & outputs must be the same. For the curious among you, Sonic Pi uses the SuperCollider Audio Server to generate its sounds. By default it will connect to your default system audio input and outputs. Unfortunately SuperCollider is having problems starting correctly. You can read the full error log below which should explain why. To fix this you can try changing your default operating system audio inputs and outputs (ensuring they have the same audio rate). Advanced Users - you may manually override this and further configure how SuperCollider boots by editing the file: C:\Users\name.sonic-pi\config\audio-settings.toml SuperCollider Log Device options:

Requested devices: In:

Selecting default system input/output devices

Booting with: In: MME : Microfono interno (Conexant Sma Out: MME : Altoparlanti / Auricolari (Cone SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error' could not initialize audio.

AleCioc commented 4 weeks ago

Same problem here on Mac OS Sequoia 15.0.1 (M1) and SonicPi 4.5.0 and 4.5.1 (tried to reinstall both).

Sorry, the Audio Server failed to start... Please try changing your default OS audio input & outputs. Note, the audio rate of the inputs & outputs must be the same. For the curious among you, Sonic Pi uses the SuperCollider Audio Server to generate its sounds. By default it will connect to your default system audio input and outputs. Unfortunately SuperCollider is having problems starting correctly. You can read the full error log below which should explain why. To fix this you can try changing your default operating system audio inputs and outputs (ensuring they have the same audio rate). Advanced Users - you may manually override this and further configure how SuperCollider boots by editing the file: /Users/alecioc/.sonic-pi/config/audio-settings.toml SuperCollider Log Number of Devices: 5 0 : "D27-30" 1 : "Scarlett 2i2 USB" 2 : "Microfono MacBook Pro" 3 : "Altoparlanti MacBook Pro" 4 : "Microsoft Teams Audio"

"Scarlett 2i2 USB" Input Device Streams: 1 0 channels 2

"Scarlett 2i2 USB" Output Device Streams: 1 0 channels 2

SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512 SuperCollider 3 server ready.

gugliver commented 2 days ago

Hi @AleCioc , I had the same issue, I think it's a 2 part problem: 1) the default input of your Mac is set to microphone 2) the fs of input and output are not the same.

You can fix both of these in Audio MIDI setup. Set them both to 44100 and if you want to use the scarlet select it and select it as default input. Note that Sonic PI only "loads" in/out devices on boot, so you need to restart it every time you make a change to this