@jskit-ai/assistant-voice 0.1.28 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fastify/websocket": "^11.2.0",
|
|
12
|
-
"@jskit-ai/assistant-core": "0.1.
|
|
13
|
-
"@jskit-ai/assistant-runtime": "0.1.
|
|
14
|
-
"@jskit-ai/assistant-voice": "0.1.
|
|
12
|
+
"@jskit-ai/assistant-core": "0.1.230",
|
|
13
|
+
"@jskit-ai/assistant-runtime": "0.1.223",
|
|
14
|
+
"@jskit-ai/assistant-voice": "0.1.30",
|
|
15
15
|
"@jskit-ai/connectors-catalog": "0.1.61",
|
|
16
16
|
"@jskit-ai/http-runtime": "0.1.242",
|
|
17
17
|
"@jskit-ai/kernel": "0.1.244",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/assistant-voice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Duplex voice conversations with application-owned targets, authorization and speech services.",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"examples"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@jskit-ai/assistant-core": "0.1.
|
|
21
|
+
"@jskit-ai/assistant-core": "0.1.230",
|
|
22
22
|
"@mdi/js": "^7.4.47",
|
|
23
23
|
"ws": "^8.20.1"
|
|
24
24
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { mdiCog } from "@mdi/js";
|
|
3
3
|
import { useSlots } from "vue";
|
|
4
|
+
import VoiceSpeakingVoiceSelect from "./VoiceSpeakingVoiceSelect.vue";
|
|
4
5
|
|
|
5
6
|
const props = defineProps({
|
|
6
7
|
voice: { type: Object, default: null },
|
|
@@ -8,10 +9,6 @@ const props = defineProps({
|
|
|
8
9
|
});
|
|
9
10
|
const emit = defineEmits(["error"]);
|
|
10
11
|
const slots = useSlots();
|
|
11
|
-
function selectVoice(value) {
|
|
12
|
-
const selectedVoice = props.voice.selectedVoice;
|
|
13
|
-
selectedVoice.value = value;
|
|
14
|
-
}
|
|
15
12
|
async function openSettings(open) {
|
|
16
13
|
if (!open || slots.default || !props.voice) return;
|
|
17
14
|
try { await props.voice.connect(); }
|
|
@@ -33,13 +30,7 @@ async function openSettings(open) {
|
|
|
33
30
|
<v-card class="voice-settings__menu" role="region" aria-label="Voice settings">
|
|
34
31
|
<v-card-text>
|
|
35
32
|
<slot :voice="voice">
|
|
36
|
-
<v-
|
|
37
|
-
v-if="voice" :model-value="voice.selectedVoice.value" @update:model-value="selectVoice"
|
|
38
|
-
:items="voice.availableVoices.value" item-title="label" item-value="id"
|
|
39
|
-
:disabled="voice.availableVoices.value.length < 2"
|
|
40
|
-
label="Speaking voice" density="comfortable"
|
|
41
|
-
hint="Applies to the next spoken reply" persistent-hint
|
|
42
|
-
/>
|
|
33
|
+
<VoiceSpeakingVoiceSelect v-if="voice" :voice="voice" />
|
|
43
34
|
</slot>
|
|
44
35
|
</v-card-text>
|
|
45
36
|
</v-card>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// The speech service's speaking-voice choice. Hosts that replace the settings
|
|
3
|
+
// menu content reuse this instead of copying the selector.
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
voice: { type: Object, required: true }
|
|
6
|
+
});
|
|
7
|
+
function selectVoice(value) {
|
|
8
|
+
const selectedVoice = props.voice.selectedVoice;
|
|
9
|
+
selectedVoice.value = value;
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<v-select
|
|
15
|
+
:model-value="voice.selectedVoice.value" @update:model-value="selectVoice"
|
|
16
|
+
:items="voice.availableVoices.value" item-title="label" item-value="id"
|
|
17
|
+
:disabled="voice.availableVoices.value.length < 2"
|
|
18
|
+
label="Speaking voice" density="comfortable"
|
|
19
|
+
hint="Applies to the next spoken reply" persistent-hint
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
package/src/client/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { default as ConversationDialog } from "./ConversationDialog.vue";
|
|
|
5
5
|
export { default as VoiceConversation } from "./VoiceConversation.vue";
|
|
6
6
|
export { default as VoiceConversationControls } from "./VoiceConversationControls.vue";
|
|
7
7
|
export { default as VoiceConversationSettings } from "./VoiceConversationSettings.vue";
|
|
8
|
+
export { default as VoiceSpeakingVoiceSelect } from "./VoiceSpeakingVoiceSelect.vue";
|
|
8
9
|
|
|
9
10
|
export { useVoiceLauncher } from "./voiceLauncher.js";
|
|
10
11
|
export { useVoiceAvatar } from "./voiceAvatar.js";
|