Cognitive-services-speech-sdk: SPX_ERR_INVALID_ARG when trying to do Speech to Text with a custom keyword

Created on 8 Aug 2020  路  3Comments  路  Source: Azure-Samples/cognitive-services-speech-sdk

Describe the bug
When trying to recognize a custom keyword from a .table file exported from speech studio I get an error: 0x5 (SPXERR_INVALID_ARG)

To Reproduce
Steps to reproduce the behavior:

Program.cs:

    class Program
    {
        static async Task Main(string[] args)
        {
            var keywordModel = KeywordRecognitionModel.FromFile("Hey_Roku.table");
            var audioConfig = AudioConfig.FromDefaultMicrophoneInput();
            var keywordRecognizer = new KeywordRecognizer(audioConfig);
            Console.WriteLine("Say \"Hey Roku...\"");
            var result = await keywordRecognizer.RecognizeOnceAsync(keywordModel);
            Console.WriteLine(result.Text);
        }
    }

Output:

Say "Hey Roku..."

libc++abi.dylib: terminating with uncaught exception of type Microsoft::CognitiveServices::Speech::Impl::ExceptionWithCallStack: Exception with an error code: 0x5 (SPXERR_INVALID_ARG)

Expected behavior
A clear and concise description of what you expected to happen.
The program runs without erroring and recognizes the custom keyword

Version of the Cognitive Services Speech SDK
1.13.0

Platform, Operating System, and Programming Language

  • OS: macOS 10.15.6
  • Hardware - mid 2012 macbook pro - 2.5 GHz Dual-Core Intel Core i5 (x86)
  • Programming language: C#

Most helpful comment

To update the status, support for KeywordRecognizer on macOS is now implemented and will be available in the next Speech SDK release (1.14.0). Therefore I'm closing this issue.

All 3 comments

@hankhester Thanks for the feedback, KeywordRecognizer is not currently supported on Mac, we are working to support it in the future releases, apologies for the inconvenience.

To update the status, support for KeywordRecognizer on macOS is now implemented and will be available in the next Speech SDK release (1.14.0). Therefore I'm closing this issue.

Hey @pankopon when is 1.14.0 scheduled to be released?

Was this page helpful?
0 / 5 - 0 ratings