Using Mac OSX Dictation with Speech API

前端 未结 1 1981
野的像风
野的像风 2021-02-06 05:41

In OSX Mavericks, speech dictation is now included, and is very useful. I am trying to use the dictation capability to create my own digital life assistant, but I can\'t find ho

1条回答
  •  逝去的感伤
    2021-02-06 05:51

    You can use SFSpeechRecognizer (mirror) (requires macOS 10.15+): this is made for speech recognition.

    Perform speech recognition on live or prerecorded audio, receive transcriptions, alternative interpretations, and confidence levels of the results.

    Whereas as you have noted in the question NSSpeechRecognizer (mirror) indeed provides a “command and control” style of voice recognition system (the command phrases must be defined prior to listening, in contrast to a dictation system where the recognized text is unconstrained).

    From https://developer.apple.com/videos/play/wwdc2019/256/ (mirror):

    Another way is to directly use Mac Dictation, but as far as I know the only way is to rerdirect audio feeds, which isn't very neat, e.g. see http://www.showcasemarketing.com/ideablog/transcribe-mp3-audio-to-text-mac-os/ (mirror).

    0 讨论(0)
提交回复
热议问题