Skip to content

Commit efbe7a9

Browse files
committed
format
1 parent 35a6fcc commit efbe7a9

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let package = Package(
2626
.target(
2727
name: "FluidAudio",
2828
dependencies: [
29-
"ESpeakNG",
29+
"ESpeakNG"
3030
],
3131
path: "Sources/FluidAudio",
3232
exclude: []

Sources/FluidAudioCLI/Commands/ASR/TranscribeCommand.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ enum TranscribeCommand {
302302
if showMetadata {
303303
let timestampString = timestampFormatter.string(from: update.timestamp)
304304
let timingSummary = streamingTimingSummary(for: update)
305-
logger.info("[\(updateType)] '\(update.text)' (conf: \(String(format: "%.3f", update.confidence)), timestamp: \(timestampString))")
305+
logger.info(
306+
"[\(updateType)] '\(update.text)' (conf: \(String(format: "%.3f", update.confidence)), timestamp: \(timestampString))"
307+
)
306308
logger.info(" \(timingSummary)")
307309
if !update.tokenTimings.isEmpty {
308310
for (index, timing) in update.tokenTimings.enumerated() {
@@ -397,7 +399,8 @@ enum TranscribeCommand {
397399

398400
if showMetadata {
399401
if let snapshot = await tracker.metadataSnapshot() {
400-
let summaryLabel = snapshot.isConfirmed
402+
let summaryLabel =
403+
snapshot.isConfirmed
401404
? "Confirmed token timings"
402405
: "Latest token timings (volatile)"
403406
logger.info(summaryLabel + ":")

0 commit comments

Comments
 (0)