@@ -22,17 +22,17 @@ import android.media.AudioTrack
2222/* *
2323 * Configuration parameters to use for conversation config.
2424 *
25- * @property functionCallHandler A callback function that is invoked whenever the model receives a
25+ * @property functionCallHandler A callback that is invoked whenever the model receives a
2626 * function call. The [FunctionResponsePart] that the callback function returns will be
2727 * automatically sent to the model.
2828 *
29- * @property transcriptHandler A callback function that is invoked whenever the model receives a
29+ * @property transcriptHandler A callback that is invoked whenever the model receives a
3030 * transcript. The first [Transcription] object is the input transcription, and the second is the
3131 * output transcription.
3232 *
33- * @property audioHandler A callback function that is invoked immediately following the successful
33+ * @property audioHandler A callback that is invoked immediately following the successful
3434 * initialization of the associated [AudioRecord] and [AudioTrack] objects. This offers a final
35- * opportunity to apply custom configurations or modifications to these objects, which will remain
35+ * opportunity to configure these objects, which will remain
3636 * valid and effective for the duration of the current audio session.
3737 *
3838 * @property enableInterruptions If enabled, allows the user to speak over or interrupt the model's
@@ -42,12 +42,12 @@ import android.media.AudioTrack
4242 * consistently available.
4343 */
4444@PublicPreviewAPI
45- public class ConversationConfig
45+ public class LiveConversationConfig
4646private constructor (
47- internal var functionCallHandler: ((FunctionCallPart ) -> FunctionResponsePart )? ,
48- internal var audioHandler: ((AudioRecord , AudioTrack ) -> Unit )? ,
49- internal var transcriptHandler: ((Transcription ? , Transcription ? ) -> Unit )? ,
50- internal var enableInterruptions: Boolean
47+ internal val functionCallHandler: ((FunctionCallPart ) -> FunctionResponsePart )? ,
48+ internal val audioHandler: ((AudioRecord , AudioTrack ) -> Unit )? ,
49+ internal val transcriptHandler: ((Transcription ? , Transcription ? ) -> Unit )? ,
50+ internal val enableInterruptions: Boolean
5151) {
5252
5353 /* *
0 commit comments