[Python] How do I import sounddevice in python?

Discussão em 'Python' iniciado por Stack, Fevereiro 23, 2025.

  1. Stack

    Stack Membro Participativo

    import sounddevice as sd


    I god the following error:

    PS C:\Users\Karlerdo> & "C:/Program Files/Python313/python.exe" c:/Users/Karlerdo/Desktop/voicereqpy.py
    Traceback (most recent call last):
    File "c:\Users\Karlerdo\Desktop\voicereqpy.py", line 2, in <module>
    import sounddevice as sd
    ModuleNotFoundError: No module named 'sounddevice'
    PS C:\Users\Karlerdo> & "C:/Program Files/Python313/python.exe" c:/Users/Karlerdo/Desktop/voicereqpy.py
    File "c:\Users\Karlerdo\Desktop\voicereqpy.py", line 2
    pip install sounddevice


    I was expecting to record audio using wavio and sounddevice using python 3.

    How to resolve this?

    Continue reading...

Compartilhe esta Página