1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-08-17 06:00:33 +03:00

feat(scripts): add error hint about PortAudio for audio stream

This commit is contained in:
louistiti 2024-05-20 00:39:33 +08:00
parent 39dae08b6b
commit 580289e05d
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669

View File

@ -217,6 +217,12 @@ SPACY_MODELS.set('fr', {
} catch (e) {
LogHelper.error(`Failed to install Python packages: ${e}`)
if (osType === OSTypes.Linux || osType === OSTypes.MacOS) {
LogHelper.error(
'If the error is related to "PortAudio" not installed or found, you can install it by running: "sudo apt install portaudio19-dev" or "brew install portaudio". Then retry. PortAudio is required for the "pyaudio" package used to record audio'
)
}
if (osType === OSTypes.Windows) {
LogHelper.error(
'Please check the error above. It might be related to Microsoft C++ Build Tools. If it is, you can check here: "https://stackoverflow.com/a/64262038/1768162" then restart your machine and retry'