Skip to content

[Java SDK] Recognition never finishes for specific files #2098

@boris-petrov

Description

@boris-petrov
  • Speech SDK log taken from a run that exhibits the reported issue.
    log.txt

  • A stripped down, simplified version of your source code that exhibits the issue. Or, preferably, try to reproduce the problem with one of the public samples in this repository (or a minimally modified version of it), and share the code.
    It will happen with any sample. Depends on the audio file - see below.

  • If relevant, a WAV file of your input audio.
    Any WAV file with an mp2 codec will do. For example, generate one with the following command: ffmpeg -y -f lavfi -i sine=frequency=1000:duration=5 -c:a mp2 -ac 2 -f wav a.wav

  • Additional information as shown below

Describe the bug

As I mentioned in the title of the issue - the recognition "blocks" and never finishes. The sessionStarted event is called but nothing more. In the logs I see [230605]: 9ms SPX_TRACE_ERROR: exception.cpp:123 About to throw Exception with an error code: 0x1b (SPXERR_RUNTIME_ERROR) - I guess that's relevant.

To Reproduce

Any code for recognition - use a file that is with an mp2 codec - see above.

Expected behavior

Some error in some of the callbacks that the file is not supported.

Version of the Cognitive Services Speech SDK

1.32.1

Platform, Operating System, and Programming Language

  • OS: [e.g. Windows, Linux, Android, iOS, ...] - Arch Linux
  • Hardware - x64
  • Programming language: Java
  • Browser [e.g. Chrome, Safari] (if applicable) - N/A

Metadata

Metadata

Assignees

Labels

acceptedIssue moved to product team backlog. Will be closed when addressed.bugSomething isn't workingfutureIssue has been reviewed by the team and is eligible for addressing in the future.update neededFor items that are in progress but have not been updated

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions