Sound not recognized through cool-retro-term? #787

Closed
opened 2023-05-02 16:21:01 +02:00 by Esshahn · 1 comment
Esshahn commented 2023-05-02 16:21:01 +02:00 (Migrated from github.com)

I have a program which records sound when started from the terminal (Mac).
It works fine in normal terminal or iTerm2, for example.

However, when I start the same python script from within cool-retro-term, no audio input is recognized.
Is there anything I can do to fix this or does anybody have a hint?

The part of the python script is as follows, but my hunch is that it's maybe a permission related issue?
Thanks in advance.

    while True:
        data = np.frombuffer(stream.read(CHUNK), dtype=np.int16)
        if np.abs(data).mean() > THRESHOLD: #check mean amplitude of the chunk
            break
I have a program which records sound when started from the terminal (Mac). It works fine in normal terminal or iTerm2, for example. However, when I start the same python script from within cool-retro-term, no audio input is recognized. Is there anything I can do to fix this or does anybody have a hint? The part of the python script is as follows, but my hunch is that it's maybe a permission related issue? Thanks in advance. ``` while True: data = np.frombuffer(stream.read(CHUNK), dtype=np.int16) if np.abs(data).mean() > THRESHOLD: #check mean amplitude of the chunk break ```
Esshahn commented 2023-05-22 18:03:21 +02:00 (Migrated from github.com)

I didn't find a solution on the Mac, but after moving the project to Linux it worked out of the box.

I didn't find a solution on the Mac, but after moving the project to Linux it worked out of the box.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#787
No description provided.