Skip to content

Stream format issue when trying to run "run_realtime_auralization.py" #1

@jeanibarz

Description

@jeanibarz

Hello,

I have an issue when trying to run the script "run_realtime_auralization.py", I get the following error:

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:/Users/ibarz/PyCharmProjects/visr-tutorial-code/python/run_realtime_auralization.py", line 140, in <module>
    optionalConfig=audioInterfaceOptions)
ValueError: The chosen stream format is is not supported by the portaudio interface: Invalid number of channels

The number of inputs is 2 (I believe this is because the renderer simulate 2 virtual loudspeakers) and the number of output is 2.

My default interface seems to be the following:

import sounddevice as sd
sd.query_devices()
   0 Microsoft Sound Mapper - Input, MME (2 in, 0 out)
>  1 Microphone (HD Webcam C525), MME (2 in, 0 out)
   2 Microphone (USB Camera Audio��), MME (2 in, 0 out)
   3 Microphone (3- VIVE Cosmos Mult, MME (2 in, 0 out)
   4 VoiceMeeter Output (VB-Audio Vo, MME (2 in, 0 out)
   5 Microphone (B10), MME (2 in, 0 out)
   6 Microphone (Trust USB microphon, MME (2 in, 0 out)
   7 Microphone (Bigscreen Audio Str, MME (2 in, 0 out)
   8 VoiceMeeter Aux Output (VB-Audi, MME (2 in, 0 out)
   9 Microsoft Sound Mapper - Output, MME (0 in, 2 out)
**< 10 VoiceMeeter Input (VB-Audio Voi, MME (0 in, 2 out)**
  11 Haut-parleurs (Bigscreen Audio , MME (0 in, 2 out)
  12 Digital Audio (S/PDIF) (High De, MME (0 in, 2 out)
  [...]

Of couvre its a playback device so the number of input is 0, and the number of output is correctly 2. Just in case, I tried to switch the number of input to 0 but I get the same error. Do you have any idea to solve this problem ? I don't know at all where to look for....

Thank you very much !

PS: I'm using windows, VoiceMeeter Input is a virtual audio card loopback, recording the audio stream and redirecting it to a physical audio device, hence its name "input", but is working as any playback device. I'm currently using EqualizerAPO to convolve 7.1 virtual loudspeakers configuration into binaural audio, but I would like to switch to VISR to add headtracking feature. So my application case is "Virtual Loudspeaker Rendering/ Binaural Room Scanning".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions