How to use the Swift language in iOS to Recognize speech from a file

chang zang 0 Reputation points
2023-04-19T04:14:10.4433333+00:00

My needs: I need a document and sample code on converting speech files using Speech-to-text in Swift programming language. My description:

  1. I read this documentation, but documentation and sample code is missing on how to recognize speech from file when using Swift programming language.https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-recognize-speech?pivots=programming-language-csharp
  2. The version of the Swift language was not found in the documentation of the speech SDK like this: https://learn.microsoft.com/zh-cn/objectivec/cognitive-services/speech/
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,061 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2023-04-19T14:05:59.84+00:00

    @chang zang I think you can look at this sample from github. The method applies pronunciation assessment but you can skip the assessment. The call to method speechRecognizer.recognizeOnceAsync() should provide the recognition result while you try to read from a file.

    The version of the SDK should be 1.27.0 or higher as mentioned in the documentation from SDK installation page.

    System requirements for iOS are:

    • A macOS version 10.14 or later
    • Target iOS 9.3 or later

    I hope this helps!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.