Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTVI 0.2.0 #5

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 0.2.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably some stuff missing from this changelog, I'll go through one more time and check but if you notice anything please let me know!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I still need to add the version number in the initial request.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, we were really missing a changelog file. I will add one on iOS as well.


- Renamed:
- `VoiceClient` to `RTVIClient`
- `VoiceClientOptions` to `RTVIClientOptions`
- `VoiceEventCallbacks` to `RTVIEventCallbacks`
- `VoiceError` to `RTVIError`
- `VoiceException` to `RTVIException`
- `VoiceClientHelper` to `RTVIClientHelper`
- `RegisteredVoiceClient` to `RegisteredRTVIClient`
- `FailedToFetchAuthBundle` to `HttpError`
- `RTVIClient()` constructor parameter changes
- `options` is now mandatory
- `baseUrl` has been moved to `options.params.baseUrl`
- `baseUrl` and `endpoints` are now separate, and the endpoint names are appended to the `baseUrl`
- Moved `RTVIClientOptions.config` to `RTVIClientOptions.params.config`
- Moved `RTVIClientOptions.customHeaders` to `RTVIClientOptions.params.headers`
- Moved `RTVIClientOptions.customBodyParams` to `RTVIClientOptions.params.requestData`
- `TransportState` changes
- Removed `Idle` state, replaced with `Disconnected`
- Added `Disconnecting` state
- Added callbacks
- `onBotLLMText()`
- `onBotTTSText()`
- `onStorageItemStored()`
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packages.) The base `VoiceClient` has no transport included.
Add the following dependency to your `build.gradle` file:

```
implementation "ai.rtvi:client:0.1.4"
implementation "ai.rtvi:client:0.2.0"
```

Then instantiate the `VoiceClient` from your code, specifying the backend `baseUrl` and transport.
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[versions]
agp = "8.5.1"
kotlin = "2.0.0"
agp = "8.5.2"
kotlin = "2.0.20"
coreKtx = "1.13.1"
junit = "4.13.2"
junitVersion = "1.2.1"
appcompat = "1.7.0"
kotlinxSerializationJson = "1.7.1"
kotlinxSerializationPlugin = "2.0.0"
kotlinxSerializationPlugin = "2.0.20"
okhttp = "4.12.0"
dokka = "1.9.20"

Expand Down
2 changes: 1 addition & 1 deletion rtvi-client-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ publishing {
register<MavenPublication>("release") {
groupId = "ai.rtvi"
artifactId = "client"
version = "0.1.4"
version = "0.2.0"

pom {
name.set("RTVI Client")
Expand Down
11 changes: 11 additions & 0 deletions rtvi-client-android/src/main/java/ai/rtvi/client/Legacy.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ai.rtvi.client


@Deprecated("VoiceClient is renamed to RTVIClient")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I think I had added a comment somewhere else if we should add these alias.
It makes sense to keep in its own file.

typealias VoiceClient = RTVIClient

@Deprecated("VoiceClientOptions is renamed to RTVIClientOptions")
typealias VoiceClientOptions = RTVIClientOptions

@Deprecated("VoiceEventCallbacks is renamed to RTVIEventCallbacks")
typealias VoiceEventCallbacks = RTVIEventCallbacks
Loading