Skip to content
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

TarsosDSP on Android. GoertzelDTMF example: No line matching form ERROR #197

Open
Aroxed opened this issue Jan 17, 2021 · 0 comments
Open

Comments

@Aroxed
Copy link

Aroxed commented Jan 17, 2021

Hello.
I'd like to use the TarsosDSP library in order to decode DTMF symbols when a user speaks using Android device.
I found an example in the TarsosDSP archive named GoertzelDTMF.java. I tried to run just as it is but encounter the following error in method public void process(...) at line dispatcher.addAudioProcessor(new BlockingAudioPlayer(format, stepSize, 0));:

E/AndroidRuntime: FATAL EXCEPTION: Thread-4981
Process: ua.promin.calladapter, PID: 4336
java.lang.IllegalArgumentException: No line matching form [pcm_signed 44100.0 Hz 16 bits 1 channels little endian]; minBufferS -1; maxBufferS -1 is supported.
at ua.promin.calladapter.audio.lib.sampled.AudioSystem.getLine(AudioSystem.java:425)
at ua.promin.calladapter.audio.lib.BlockingAudioPlayer.(BlockingAudioPlayer.java:52)
at ua.promin.calladapter.audio.Recording.decodeDTMFStatic(Recording.java:108)
at ua.promin.calladapter.audio.Recording.access$100(Recording.java:20)
at ua.promin.calladapter.audio.Recording$1.run(Recording.java:46)
at java.lang.Thread.run(Thread.java:818)

What does this error mean and how to fix it?
Thanks in advance.

@Aroxed Aroxed changed the title TarsosDSP Android Studio cannot find while importing TarsosDSP Android Studio cannot be found while importing Jan 17, 2021
@Aroxed Aroxed closed this as completed Jan 17, 2021
@Aroxed Aroxed changed the title TarsosDSP Android Studio cannot be found while importing TarsosDSP on Android. GoertzelDTMF example: No line matching form ERROR Jan 19, 2021
@Aroxed Aroxed reopened this Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant