Comments (6)
Looking at the stack trace and error report, it seems like your sound card doesn't support the audio format listed there.
Unfortunately, some of those requirements (16bit/16Khz/4byte frames) are required by Google's Voice to Text API.
after some googling i determined that there is a way to determine what your sound card can support
taken from
http://amug.org/~glguerin/other/index.html ... AboutSound
you can compile and run the AboutSound.java file
it shoots out a response regarding what your audio card can support.
thats as much as I know about the topic, if you can figure out a way to record in a more standard way and covert it to the current format, I presume that could be a solution too
from iris-voice-automation.
Thanks, I'll look into this and get back to you.
from iris-voice-automation.
I am having the same issue. I get
unable to get a recording line
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 1
6000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
But is it really because of the sound card? Could it be because of some other reason?
I got the supported formats using AboutSound and, for example, I got this:
...
PCM_UNSIGNED unknown sample rate, 8 bit, mono, 1 bytes/frame,
PCM_SIGNED unknown sample rate, 8 bit, mono, 1 bytes/frame,
PCM_SIGNED unknown sample rate, 16 bit, mono, 2 bytes/frame, little-endian
PCM_SIGNED unknown sample rate, 16 bit, mono, 2 bytes/frame, big-endian
PCM_UNSIGNED unknown sample rate, 8 bit, stereo, 2 bytes/frame,
PCM_SIGNED unknown sample rate, 8 bit, stereo, 2 bytes/frame,
PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, little-endian
PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian
...
I didn't got any value for sample rate.
from iris-voice-automation.
PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, little-endian
It would seem that your card does support 'little-endian', perhaps you need to change some of your audio settings in order to run the program first.
from iris-voice-automation.
Thanks a lot for your answer. What settings do you mean? Can you help me with this?
from iris-voice-automation.
It crashes on this:
primaryLine = (TargetDataLine) AudioSystem.getLine(info);
primaryLine.open(audioFormat);
secondaryLine = (TargetDataLine) AudioSystem.getLine(info2);
secondaryLine.open(audioFormat);
I think there is some trouble to open two same sound lines in windows.
from iris-voice-automation.
Related Issues (3)
- error running compiled jar HOT 4
- Iris Additions HOT 5
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 iris-voice-automation.