Skip to content

Commit

Permalink
Open up synthesizer property; bump version for a release (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie authored Nov 5, 2024
1 parent abc048a commit 835a2e4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if useLocalFramework {
path: "./common/target/ios/libferrostar-rs.xcframework"
)
} else {
let releaseTag = "0.20.0"
let releaseTag = "0.20.1"
let releaseChecksum = "7d748524c29ace95db76b03f536d4112b31950dfbeeaec89ed4a4f3e38d83adb"
binaryTarget = .binaryTarget(
name: "FerrostarCoreRS",
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ ext {

allprojects {
group = "com.stadiamaps.ferrostar"
version = "0.20.0"
version = "0.20.1"
}
20 changes: 10 additions & 10 deletions apple/Sources/FerrostarCore/Speech/SpokenInstructionObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation
public class SpokenInstructionObserver: ObservableObject {
@Published public private(set) var isMuted: Bool

private let synthesizer: SpeechSynthesizer
let synthesizer: SpeechSynthesizer
private let queue = DispatchQueue(label: "ferrostar-spoken-instruction-observer", qos: .default)

/// Create a spoken instruction observer with any ``SpeechSynthesizer``
Expand All @@ -28,16 +28,16 @@ public class SpokenInstructionObserver: ObservableObject {
return
}

let utterance: AVSpeechUtterance = if #available(iOS 16.0, *),
let ssml = instruction.ssml,
let ssmlUtterance = AVSpeechUtterance(ssmlRepresentation: ssml)
{
ssmlUtterance
} else {
AVSpeechUtterance(string: instruction.text)
}

queue.async {
let utterance: AVSpeechUtterance = if #available(iOS 16.0, *),
let ssml = instruction.ssml,
let ssmlUtterance = AVSpeechUtterance(ssmlRepresentation: ssml)
{
ssmlUtterance
} else {
AVSpeechUtterance(string: instruction.text)
}

self.synthesizer.speak(utterance)
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/ferrostar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lints.workspace = true

[package]
name = "ferrostar"
version = "0.20.0"
version = "0.20.1"
readme = "README.md"
description = "The core of modern turn-by-turn navigation."
keywords = ["navigation", "routing", "valhalla", "osrm"]
Expand Down
4 changes: 2 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"CatMe0w <[email protected]> (https://github.com/CatMe0w)",
"Luke Seelenbinder <[email protected]>"
],
"version": "0.20.0",
"version": "0.20.1",
"license": "BSD-3-Clause",
"type": "module",
"main": "./dist/ferrostar-webcomponents.js",
Expand Down

0 comments on commit 835a2e4

Please sign in to comment.