Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.21k stars 846 forks source link

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

Closed Esshahn closed 1 year ago

Esshahn commented 1 year ago

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 1 year ago

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