Skip to content

Commit aaf86a9

Browse files
committed
Updating OpenAI Realtime transport to use new Pipecat Client API
1 parent 6325ec3 commit aaf86a9

9 files changed

Lines changed: 157 additions & 188 deletions

File tree

gradle/libs.versions.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[versions]
22
agp = "8.5.2"
33
daily-android-client = "0.35.0"
4-
kotlin = "2.0.20"
5-
coreKtx = "1.13.1"
6-
kotlinxCoroutinesTest = "1.8.1"
7-
kotlinxSerializationJson = "1.7.1"
8-
kotlinxSerializationPlugin = "2.0.20"
9-
dokka = "1.9.20"
4+
kotlin = "2.3.10"
5+
coreKtx = "1.17.0"
6+
kotlinxCoroutinesTest = "1.10.2"
7+
kotlinxSerializationJson = "1.10.0"
8+
kotlinxSerializationPlugin = "2.3.10"
9+
dokka = "2.1.0"
1010
androidxTest = "1.6.1"
1111
ktor = "2.3.5"
1212
okhttp = "4.12.0"
13-
pipecatClient = "1.1.0"
13+
pipecatClient = "1.2.0"
1414

1515
[libraries]
1616
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }

pipecat-client-android-daily/build.gradle.kts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
val libraryVersion = "1.1.0"
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
3+
val libraryVersion = "1.2.0"
24

35
plugins {
46
alias(libs.plugins.android.library)
@@ -29,6 +31,10 @@ android {
2931
}
3032
}
3133

34+
publishing {
35+
singleVariant("release") {}
36+
}
37+
3238
compileOptions {
3339
sourceCompatibility = JavaVersion.VERSION_11
3440
targetCompatibility = JavaVersion.VERSION_11
@@ -38,15 +44,17 @@ android {
3844
targetSdk = 35
3945
}
4046

41-
kotlinOptions {
42-
jvmTarget = "11"
43-
}
44-
4547
buildFeatures {
4648
buildConfig = true
4749
}
4850
}
4951

52+
kotlin {
53+
compilerOptions {
54+
jvmTarget.set(JvmTarget.JVM_11)
55+
}
56+
}
57+
5058
dependencies {
5159
implementation(libs.androidx.core.ktx)
5260
implementation(libs.kotlinx.serialization.json)

pipecat-client-android-gemini-live-websocket/build.gradle.kts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android.library)
35
alias(libs.plugins.jetbrains.kotlin.android)
@@ -26,17 +28,23 @@ android {
2628
}
2729
}
2830

31+
publishing {
32+
singleVariant("release") {}
33+
}
34+
2935
compileOptions {
30-
sourceCompatibility = JavaVersion.VERSION_1_8
31-
targetCompatibility = JavaVersion.VERSION_1_8
36+
sourceCompatibility = JavaVersion.VERSION_11
37+
targetCompatibility = JavaVersion.VERSION_11
3238
}
3339

3440
lint {
3541
targetSdk = 35
3642
}
43+
}
3744

38-
kotlinOptions {
39-
jvmTarget = "1.8"
45+
kotlin {
46+
compilerOptions {
47+
jvmTarget.set(JvmTarget.JVM_11)
4048
}
4149
}
4250

pipecat-client-android-openai-realtime-webrtc/build.gradle.kts

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android.library)
35
alias(libs.plugins.jetbrains.kotlin.android)
@@ -26,34 +28,39 @@ android {
2628
}
2729
}
2830

31+
publishing {
32+
singleVariant("release") {}
33+
}
34+
2935
compileOptions {
30-
sourceCompatibility = JavaVersion.VERSION_1_8
31-
targetCompatibility = JavaVersion.VERSION_1_8
36+
sourceCompatibility = JavaVersion.VERSION_11
37+
targetCompatibility = JavaVersion.VERSION_11
3238
}
3339

3440
lint {
3541
targetSdk = 35
3642
}
3743

38-
kotlinOptions {
39-
jvmTarget = "1.8"
40-
}
41-
4244
sourceSets {
4345
getByName("main") {
4446
jniLibs.srcDirs("$rootDir/libs/webrtc/jniLibs")
4547
}
4648
}
4749
}
4850

51+
kotlin {
52+
compilerOptions {
53+
jvmTarget.set(JvmTarget.JVM_11)
54+
}
55+
}
56+
4957
dependencies {
5058
implementation(files("$rootDir/libs/webrtc/libs/libwebrtc-6998.jar"))
5159

5260
implementation(libs.androidx.core.ktx)
5361
implementation(libs.kotlinx.serialization.json)
5462

55-
// Temporary override until transport is updated to 1.0.0
56-
api("ai.pipecat:client:0.3.4")
63+
api(libs.pipecat.client)
5764

5865
androidTestImplementation(libs.androidx.runner)
5966
androidTestImplementation(libs.androidx.rules)
@@ -72,7 +79,7 @@ publishing {
7279
register<MavenPublication>("release") {
7380
groupId = "ai.pipecat"
7481
artifactId = "openai-realtime-webrtc-transport"
75-
version = "0.3.7"
82+
version = "1.2.0"
7683

7784
pom {
7885
name.set("OpenAI Realtime WebRTC Transport")

pipecat-client-android-openai-realtime-webrtc/src/main/java/ai/pipecat/client/openai_realtime_webrtc/OpenAIRealtimeSessionConfig.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package ai.pipecat.client.openai_realtime_webrtc
22

33
import ai.pipecat.client.types.Value
4+
import android.annotation.SuppressLint
45
import kotlinx.serialization.SerialName
56
import kotlinx.serialization.Serializable
67

8+
@SuppressLint("UnsafeOptInUsageError")
79
@Serializable
810
data class OpenAIRealtimeSessionConfig(
911
val modalities: List<String>? = null,

0 commit comments

Comments
 (0)