Skip to content

Could not import the PyAudio C module '_portaudio'. #218

@Tzyito

Description

@Tzyito

I try to install in my macOS M1, but alway get this error.

and i try to do this #193 , but not work~

conda create -n python@3.10 python=3.10

conda activate python@3.10

conda install -c conda-forge portaudio
conda install -c conda-forge pyaudio

# and then
pip install RealTime

# test.py
from RealtimeSTT import AudioToTextRecorder

def process_text(text):
    print(text)

if __name__ == '__main__':
    print("Wait until it says 'speak now'")
    recorder = AudioToTextRecorder()

    while True:
        recorder.text(process_text)

# and got this error
Could not import the PyAudio C module '_portaudio'.

anyone have a solution with this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions