Code Monkey home page Code Monkey logo

Comments (11)

TheStaticTurtle avatar TheStaticTurtle commented on September 27, 2024

Would you be able to post your code?
This lib is really old I'm not sure if it still works I'll have to look into it

from pyvban.

LunaMeadows avatar LunaMeadows commented on September 27, 2024

I just used the sample code that was given. All I changed in pyVBAN was remove ord() and fix the print strings for python3.

from pyvban.

TheStaticTurtle avatar TheStaticTurtle commented on September 27, 2024

Humm long time since I looked at the code but I believe that the ord should stay there, was there on error when you had them

from pyvban.

LunaMeadows avatar LunaMeadows commented on September 27, 2024

Sorry for the late reply, “TypeError: ord() expected string of length 1, but int found” was the error I was getting and from what I saw, python3 was not needed anymore but may of been looking at it wrong.

from pyvban.

wolf3x avatar wolf3x commented on September 27, 2024

Hi, i have the same problem as LunaMeadows, it will be great if you can look at the code, it will be a great help for my audio setup

from pyvban.

TheStaticTurtle avatar TheStaticTurtle commented on September 27, 2024

By any chance, are you using python3 ?

from pyvban.

TheStaticTurtle avatar TheStaticTurtle commented on September 27, 2024

If yes, please pull the latest version, I've updated it for python 3.
My bad that I haven't written it anywhere, but it was written for py2, these errors are typical of a py2 script started with py3. It would have been a good idea to test it on py2 since it was first written 2 years ago (I realize that py2 hit his EOL this is why I updated)

Could you verify that everything is working now ?

from pyvban.

LunaMeadows avatar LunaMeadows commented on September 27, 2024

I pulled the new code however I am still getting errors, however they are new errors.

When running
import pyVBAN cl = pyVBAN.VBAN_Recv("127.0.0.1","Stream7",6980,7,verbose=True) cl.runforever()

I get
Traceback (most recent call last): File "C:/Users/derri/Documents/Projects/AudioTransmiter/test.py", line 4, in <module> cl = pyVBAN.VBAN_Recv("127.0.0.1","Stream7",6981,10,verbose=True) File "C:\Users\derri\Documents\Projects\AudioTransmiter\pyVBAN.py", line 27, in __init__ self.stream = self.p.open(format = self.p.get_format_from_width(2), channels = self.channels, rate = self.sampRate, output = True, output_device_index=self.outDeviceIndex) File "C:\Users\derri\AppData\Local\Programs\Python\Python38\lib\site-packages\pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs) File "C:\Users\derri\AppData\Local\Programs\Python\Python38\lib\site-packages\pyaudio.py", line 441, in __init__ self._stream = pa.open(**arguments) OSError: [Errno -9998] Invalid number of channels

from pyvban.

TheStaticTurtle avatar TheStaticTurtle commented on September 27, 2024

What is the number of channel that input card that you are using have? mono, stereo or more ?

+Could you give me the output of: (replace inDeviceIndex with your index)

import pyaudio
p = pyaudio.PyAudio()
p.get_device_info_by_host_api_device_index(0, inDeviceIndex).get('maxInputChannels')

from pyvban.

LunaMeadows avatar LunaMeadows commented on September 27, 2024

So that is completely my fault. I chose the input id instead of the output id. Works great now.

from pyvban.

TheStaticTurtle avatar TheStaticTurtle commented on September 27, 2024

Glad to know it works now.
@wolf3x I'm closing this issue if you still have a problem please open a new issue

from pyvban.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.