Giter VIP home page Giter VIP logo

Comments (6)

samirahmed avatar samirahmed commented on August 16, 2024

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.

JordanMajd avatar JordanMajd commented on August 16, 2024

Thanks, I'll look into this and get back to you.

from iris-voice-automation.

inmaAsesores avatar inmaAsesores commented on August 16, 2024

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.

JordanMajd avatar JordanMajd commented on August 16, 2024

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.

inmaAsesores avatar inmaAsesores commented on August 16, 2024

Thanks a lot for your answer. What settings do you mean? Can you help me with this?

from iris-voice-automation.

Rai220 avatar Rai220 commented on August 16, 2024

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)

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.