Skip to content

Commit

Permalink
Bitrise build 2180
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitrise Buildbot committed Nov 30, 2022
1 parent 2821a17 commit ca27b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ConnectivityModule: Module {
case .none: return .NONE
case .wifi: return .WIFI
case .cellular: return getWWANNetworkType()
case .unavailable:return .NONE
case .unavailable: return .NONE
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import AVFoundation

class RealSpeechEngine: SpeechEngine {
let synthesizer = AVSpeechSynthesizer()

public func speak(text: String, rate: Float = 0.5, language: String = "en-US") {
let utterance = AVSpeechUtterance(string: text)
utterance.voice = AVSpeechSynthesisVoice(language: language)
utterance.rate = rate

let synthesizer = AVSpeechSynthesizer()
synthesizer.speak(utterance)
}
}

0 comments on commit ca27b4c

Please sign in to comment.