File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public abstract class LiveSessionFutures internal constructor() {
55
55
* Starts an audio conversation with the model, which can only be stopped using
56
56
* [stopAudioConversation].
57
57
*/
58
+ @RequiresPermission(RECORD_AUDIO )
58
59
public abstract fun startAudioConversation (): ListenableFuture <Unit >
59
60
60
61
/* *
@@ -64,6 +65,7 @@ public abstract class LiveSessionFutures internal constructor() {
64
65
*
65
66
* If there is no audio conversation currently active, this function does nothing.
66
67
*/
68
+ @RequiresPermission(RECORD_AUDIO )
67
69
public abstract fun stopAudioConversation (): ListenableFuture <Unit >
68
70
69
71
/* *
@@ -163,6 +165,7 @@ public abstract class LiveSessionFutures internal constructor() {
163
165
functionCallHandler : ((FunctionCallPart ) -> FunctionResponsePart )?
164
166
) = SuspendToFutureAdapter .launchFuture { session.startAudioConversation(functionCallHandler) }
165
167
168
+ @RequiresPermission(RECORD_AUDIO )
166
169
override fun startAudioConversation () =
167
170
SuspendToFutureAdapter .launchFuture { session.startAudioConversation() }
168
171
You can’t perform that action at this time.
0 commit comments