@@ -191,7 +191,7 @@ export class LiveAudioTranscriptionSession {
191191
192192 /**
193193 * Start a real-time audio streaming session.
194- * Must be called before append() or getTranscriptionStream ().
194+ * Must be called before append() or getStream ().
195195 * Settings are frozen after this call.
196196 */
197197 public async start ( ) : Promise < void > {
@@ -319,17 +319,17 @@ export class LiveAudioTranscriptionSession {
319319 *
320320 * Usage:
321321 * ```ts
322- * for await (const result of client.getTranscriptionStream ()) {
322+ * for await (const result of client.getStream ()) {
323323 * console.log(result.content[0].text);
324324 * }
325325 * ```
326326 */
327- public async * getTranscriptionStream ( ) : AsyncGenerator < LiveAudioTranscriptionResponse > {
327+ public async * getStream ( ) : AsyncGenerator < LiveAudioTranscriptionResponse > {
328328 if ( ! this . outputQueue ) {
329329 throw new Error ( 'No active streaming session. Call start() first.' ) ;
330330 }
331331 if ( this . streamConsumed ) {
332- throw new Error ( 'getTranscriptionStream () can only be called once per session. The output stream has already been consumed.' ) ;
332+ throw new Error ( 'getStream () can only be called once per session. The output stream has already been consumed.' ) ;
333333 }
334334 this . streamConsumed = true ;
335335
@@ -341,7 +341,7 @@ export class LiveAudioTranscriptionSession {
341341 /**
342342 * Signal end-of-audio and stop the streaming session.
343343 * Any remaining buffered audio in the push queue will be drained to native core first.
344- * Final results are delivered through getTranscriptionStream () before it completes.
344+ * Final results are delivered through getStream () before it completes.
345345 */
346346 public async stop ( ) : Promise < void > {
347347 if ( ! this . started || this . stopped ) {
0 commit comments