diff --git a/examples/next-app/components/ExampleComponent.tsx b/examples/next-app/components/ExampleComponent.tsx index 195a388..1cd115f 100644 --- a/examples/next-app/components/ExampleComponent.tsx +++ b/examples/next-app/components/ExampleComponent.tsx @@ -46,6 +46,7 @@ export const ExampleComponent = () => { sendResumeAssistantMessage, sendPauseAssistantMessage, chatMetadata, + playerQueueLength, } = useVoice(); const [textValue, setTextValue] = useState(''); @@ -104,6 +105,12 @@ export const ExampleComponent = () => {
{isPlaying ? 'true' : 'false'}
+
+
+ Player queue length +
+
{playerQueueLength}
+
Ready state diff --git a/packages/embed-react/package.json b/packages/embed-react/package.json index f4ebac1..240f8b1 100644 --- a/packages/embed-react/package.json +++ b/packages/embed-react/package.json @@ -1,6 +1,6 @@ { "name": "@humeai/voice-embed-react", - "version": "0.1.12-beta.6", + "version": "0.1.12", "description": "", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/embed/package.json b/packages/embed/package.json index e5a7081..16c8195 100644 --- a/packages/embed/package.json +++ b/packages/embed/package.json @@ -1,6 +1,6 @@ { "name": "@humeai/voice-embed", - "version": "0.1.12-beta.6", + "version": "0.1.12", "description": "", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/react/README.md b/packages/react/README.md index 3a9d8ed..a1b0e36 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -139,6 +139,7 @@ export const ExampleComponent = () => { | `callDurationTimestamp` | `string` or `null` | The length of a call. This value persists after the conversation has ended. | | `toolStatusStore` | `Record` | A map of tool call IDs to their associated tool messages. | | `chatMetadata` | `ChatMetadataMessage` or `null` | Metadata about the current chat, including chat ID, chat group ID, and request ID. | +| `playerQueueLength` | `number` | The number of assistant audio clips that are queued up, including the clip that is currently playing. | ## Support diff --git a/packages/react/package.json b/packages/react/package.json index 45c91e9..74e95e0 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@humeai/voice-react", - "version": "0.1.12-beta.6", + "version": "0.1.12", "description": "", "main": "./dist/index.js", "module": "./dist/index.mjs",