Skip to content

[speech-to-text] API generates invalid JSON transcription #675

@nevinchanyi

Description

@nevinchanyi

[REQUIRED] Step 2: Describe your configuration

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

  1. Upload the .m4a example audio file to a storage in the path such as: {lang_code}/{user_id}/audio.m4a
  2. Wait for the transcription and check the result – it produces invalid JSON, which I cannot parse on the iOS app not with JSONDecoder, not with JSONSerialization.
Expected result

API generates a valid JSON transcription.

Actual result

iOS (Swift) cannot decode the invalid JSON file. I think this {} in the empty array might be the reason:

, {
    "alternatives": [ {
    
    } ],
    "languageCode": "en-us",
    "resultEndTime": "221.340s"
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions