Skip to content

Commit 6da748e

Browse files
committed
Tidying: use toStr
1 parent 41824f7 commit 6da748e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openai-realtime-webrtc-demo/src/main/java/ai/pipecat/openai_realtime_webrtc_demo/VoiceClientManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class VoiceClientManager(private val context: Context) {
9898
),*/
9999
initialConfig = OpenAIRealtimeSessionConfig(
100100
voice = "ballad",
101-
turnDetection = Value.Object("type" to Value.Str("semantic_vad")),
102-
inputAudioNoiseReduction = Value.Object("type" to Value.Str("near_field")),
103-
inputAudioTranscription = Value.Object("model" to Value.Str("gpt-4o-transcribe")),
101+
turnDetection = Value.Object("type" toStr "semantic_vad"),
102+
inputAudioNoiseReduction = Value.Object("type" toStr "near_field"),
103+
inputAudioTranscription = Value.Object("model" toStr "gpt-4o-transcribe"),
104104
tools = Value.Array(
105105
Value.Object(
106106
"type" toStr "function",

0 commit comments

Comments
 (0)