Skip to main content

voice-recognition | ios-app-dev-memo

Target> Info> Privacy - Speech Recognition Usage Description Target> Info> Privacy - Microphone Usage Description

ここのサンプルクラスを使って、

https://developer.apple.com/tutorials/app-dev-training/transcribing-speech-to-text

呼び出す側はこれだけ。

swift
	func start() {
speechRecognizer.resetTranscript()
speechRecognizer.startTranscribing()
}

func stop() {
speechRecognizer.stopTranscribing()
print(speechRecognizer.transcript)
}