@@ -76,30 +76,30 @@ class LiveSession {
7676 _ws.sink.add (clientJson);
7777 }
7878
79- /// Sends audio data to the server.
79+ /// Sends audio data to the server in realtime .
8080 ///
8181 /// [audio] : The audio data to send.
82- Future <void > sendAudio (InlineDataPart audio) async {
82+ Future <void > sendAudioRealtime (InlineDataPart audio) async {
8383 _checkWsStatus ();
8484 var clientMessage = LiveClientRealtimeInput .audio (audio);
8585 var clientJson = jsonEncode (clientMessage.toJson ());
8686 _ws.sink.add (clientJson);
8787 }
8888
89- /// Sends video data to the server.
89+ /// Sends video data to the server in realtime .
9090 ///
9191 /// [video] : The video data to send.
92- Future <void > sendVideo (InlineDataPart video) async {
92+ Future <void > sendVideoRealtime (InlineDataPart video) async {
9393 _checkWsStatus ();
9494 var clientMessage = LiveClientRealtimeInput .video (video);
9595 var clientJson = jsonEncode (clientMessage.toJson ());
9696 _ws.sink.add (clientJson);
9797 }
9898
99- /// Sends text data to the server.
99+ /// Sends text data to the server in realtime .
100100 ///
101101 /// [text] : The text data to send.
102- Future <void > sendText (String text) async {
102+ Future <void > sendTextRealtime (String text) async {
103103 _checkWsStatus ();
104104 var clientMessage = LiveClientRealtimeInput .text (text);
105105 var clientJson = jsonEncode (clientMessage.toJson ());
@@ -109,7 +109,8 @@ class LiveSession {
109109 /// Sends realtime input (media chunks) to the server.
110110 ///
111111 /// [mediaChunks] : The list of media chunks to send.
112- @Deprecated ('Use sendAudio, sendVideo, or sendText instead' )
112+ @Deprecated (
113+ 'Use sendAudioRealtime, sendVideoRealtime, or sendTextRealtime instead' )
113114 Future <void > sendMediaChunks ({
114115 required List <InlineDataPart > mediaChunks,
115116 }) async {
0 commit comments