-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am having a run time error using play function #61
Comments
What's your data, what's your operating system, what's your Python version, what version of SoundCard do you have installed? |
I had used the same code that is shown in the tutorial of the code that you had mentioned. The data that is recorded is a numpy file. I am using 3.7 version of python. i am using 0.3.2 version sound card. I am using windows |
What version of Windows, what is your data? I can't see your computer. Please help me help you. |
I am using windows 10. My data is a numpy array the regular one that will be available after recording the audio. Its fine. I was able to play the audio with different library but it was showing up an error message instead of playing with soundcard. |
Like, how long is your data? How many channels? Does it contain NaNs? Is it bounded between [-1, 1]? What is your sound card? "The regular one" is not descriptive. I need more information to reproduce your issue, or suggest fixes. |
1.xlsx |
Thank you! Can you show me the entire stack trace of the error? |
Traceback (most recent call last): File "", line 1, in File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 419, in play File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 416, in player File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 523, in init File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 88, in check_error RuntimeError: Error 0x80070006 |
That's a weird spot for an error I have not seen before. Does it work with I see you are using anaconda. How did you install SoundCard? |
Upon checking with the documentation, the exclusive_mode parameter is for player function. Upon giving data in to the player() funciton it says invalid argument as I can't give data to the player() function. |
I tried using the tag "exclusive_mode = True". It throws a run time error as invalid argument. |
Then you provided this keyword argument to the wrong function. But you didn't say or tell me which function you provided it to. So show me complete code examples and complete stack traces, and format your questions correctly, or I will not be able to help you. Information on formatting: https://guides.github.com/features/mastering-markdown/ |
Hello i am getting a run time error while using play() funciton
Here is the piece of code and error message
default_speaker.play(data/numpy.max(data), samplerate=48000)
RuntimeError: Error 0x80070006
The text was updated successfully, but these errors were encountered: