Skip to content

Commit

Permalink
Add comments for the Recordable class
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmogos committed Oct 31, 2018
1 parent 39ee428 commit 04f4eb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions VoiceOverlay/Protocols/Recordable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@

import Foundation

/// Protocol that allows to inject any STT into the voice overlay
public protocol Recordable {

// Starting the recording and processing the STT
func startRecording(textHandler: @escaping SpeechTextHandler, errorHandler: @escaping SpeechErrorHandler)

// Stop the recording
func stopRecording()

// Get the state of the recording
func isRecording() -> Bool

// Request system authorisation for STT and Voice capabilies
func requestAuthorization(_ statusHandler: @escaping (Bool) -> Void)
}

Expand Down

0 comments on commit 04f4eb8

Please sign in to comment.