Skip to content

Commit d2f48fd

Browse files
committed
Rename to LiveAudioTranscription
1 parent 27ce3fa commit d2f48fd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

FirebaseAI/Sources/Types/Public/Live/LiveTranscription.swift renamed to FirebaseAI/Sources/Types/Public/Live/LiveAudioTranscription.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// Text transcription of some audio form during a live interaction with the model.
1616
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, *)
1717
@available(watchOS, unavailable)
18-
public struct LiveTranscription: Sendable {
18+
public struct LiveAudioTranscription: Sendable {
1919
let transcript: BidiGenerateContentTranscription
2020
/// Text representing the model's interpretation of what the audio said.
2121
public var text: String? { transcript.text }

FirebaseAI/Sources/Types/Public/Live/LiveServerContent.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public struct LiveServerContent: Sendable {
6161
///
6262
/// This field is only populated when an ``AudioTranscriptionConfig`` is provided to
6363
/// ``LiveGenerationConfig``.
64-
public var inputAudioTranscription: LiveTranscription? {
65-
serverContent.inputTranscription.map { LiveTranscription($0) }
64+
public var inputAudioTranscription: LiveAudioTranscription? {
65+
serverContent.inputTranscription.map { LiveAudioTranscription($0) }
6666
}
6767

6868
/// Transcription matching the model's audio response.
@@ -72,8 +72,8 @@ public struct LiveServerContent: Sendable {
7272
///
7373
/// > Important: Transcripts are independent to the model turn. This means transcripts may
7474
/// > come earlier or later than when the model sends the corresponding audio responses.
75-
public var outputAudioTranscription: LiveTranscription? {
76-
serverContent.outputTranscription.map { LiveTranscription($0) }
75+
public var outputAudioTranscription: LiveAudioTranscription? {
76+
serverContent.outputTranscription.map { LiveAudioTranscription($0) }
7777
}
7878

7979
init(_ serverContent: BidiGenerateContentServerContent) {

0 commit comments

Comments
 (0)