Skip to content

Commit

Permalink
Removing audio level processor, version 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-daily committed Aug 19, 2024
1 parent c1b752b commit 1e530e7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 61 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This Android library exposes the `DailyVoiceClient` class, to connect to a Daily
Add the following dependency to your `build.gradle` file:

```
implementation "ai.rtvi:rtvi-client-android-daily:0.1.1"
implementation "ai.rtvi:rtvi-client-android-daily:0.1.2"
```

Instantiate from your code:
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kotlinxSerializationJson = "1.7.1"
kotlinxSerializationPlugin = "2.0.0"
dokka = "1.9.20"
androidxTest = "1.6.1"
rtviClient = "0.1.0"
rtviClient = "0.1.1"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
Expand Down
2 changes: 1 addition & 1 deletion rtvi-client-android-daily/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ publishing {
register<MavenPublication>("release") {
groupId = "ai.rtvi"
artifactId = "client-daily"
version = "0.1.1"
version = "0.1.2"

pom {
name.set("RTVI Client Daily Transport")
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,6 @@ class DailyTransport(
val participants = mutableMapOf<ParticipantId, Participant>()
var botUser: Participant? = null

private val audioLevelProcessorBot = AudioLevelProcessor(
thread = thread,
onIsSpeaking = {
val bot = botUser

if (bot != null) {
if (it) {
transportContext.callbacks.onBotStartedSpeaking(bot)
} else {
transportContext.callbacks.onBotStoppedSpeaking(bot)
}
}
}
)

override fun onLocalAudioLevel(audioLevel: Float) {
transportContext.callbacks.onUserAudioLevel(audioLevel)
}
Expand All @@ -91,11 +76,6 @@ class DailyTransport(
val participant = participants[rtviId]

if (participant != null) {

if (botUser?.id == rtviId) {
audioLevelProcessorBot.onLevelChanged(level)
}

transportContext.callbacks.onRemoteAudioLevel(
level = level,
participant = participant
Expand Down

0 comments on commit 1e530e7

Please sign in to comment.