Comments (12)
What's your data, what's your operating system, what's your Python version, what version of SoundCard do you have installed?
from soundcard.
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
from soundcard.
What version of Windows, what is your data? I can't see your computer. Please help me help you.
from soundcard.
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.
from 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.
from soundcard.
1.xlsx
I am attaching a excel file of a data that I am giving input to my play function. Data is (48000,2) long numpy array. It has 2 channels. No it doesn't have any nulls.No it is not bounded between -1 and 1. My sound card is "Realtek High Definition Audio".
from soundcard.
Thank you! Can you show me the entire stack trace of the error?
from soundcard.
Traceback (most recent call last):
File "", line 1, in
default_speaker.play(main_data/numpy.max(main_data), samplerate = 48000)
File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 419, in play
with self.player(samplerate, channels, blocksize) as p:
File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 416, in player
return _Player(self._audio_client(), samplerate, channels, blocksize, False, exclusive_mode)
File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 523, in init
_com.check_error(hr)
File "C:\Users\bhgajula\AppData\Local\Continuum\anaconda3\lib\site-packages\soundcard\mediafoundation.py", line 88, in check_error
raise RuntimeError('Error {}'.format(hex(hresult+2**32)))
RuntimeError: Error 0x80070006
from soundcard.
That's a weird spot for an error I have not seen before. Does it work with exclusive_mode=True
?
I see you are using anaconda. How did you install SoundCard?
from 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.
from soundcard.
I tried using the tag "exclusive_mode = True". It throws a run time error as invalid argument.
from soundcard.
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/
Information on SoundCard: https://soundcard.readthedocs.io/
from soundcard.
Related Issues (20)
- Why won't it save my audio when I use this with SoundFile? HOT 4
- OSError: ctypes.util.find_library() did not manage to locate a library called 'harfbuzz' please help in windows HOT 2
- Does anyone know how to make this work? HOT 1
- Wav file is empty after recording is saved to file HOT 5
- how to end playback in advance? HOT 2
- Need help with settings HOT 6
- MacOS: Empty result for all_speakers/all_microphones HOT 28
- Record audio unlimited HOT 6
- get mac audio output level HOT 1
- Queation: Is that possible to record based on a button click? HOT 1
- Data loss while recording HOT 4
- Cannot record sound with loopback if silence at start HOT 10
- loopback record audio from speaker return zero array HOT 5
- Problem with the player HOT 1
- how to get non numpy "raw" mono data from the record() method HOT 2
- pluseaudio.py line 3 `import collections` set --> `import collections.abc as collections` HOT 7
- Using version 0.4.2, when recording Xiaomi microphones on Win11, the response was that there was no valid sound in the data, HOT 4
- Empty result for all_speakers/all_microphones on Ubuntu OS HOT 6
- Approach for recording using jack soundcard HOT 1
- [Report] soundcard with synthplayer module on macos. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soundcard.