Skip to content

Commit

Permalink
feat: Тест слушания
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha-tlt committed Aug 5, 2024
1 parent 2c5ba40 commit e4994e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:

- name: Cypress run
uses: cypress-io/github-action@v2
if: "false"
with:
install: false
browser: chrome
Expand Down
12 changes: 11 additions & 1 deletion src/assistantSdk/assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,17 @@ export const createAssistant = ({
getVoiceMeta: () => (getVoiceMeta ? convertFieldValuesToString(getVoiceMeta()) : {}),
});
const voice = createVoice(
client,
(() => ({
init: () => Promise.resolve(),
createVoiceStream: (func) =>
func({
sendVoice: (params) => {
window.postMessage(JSON.stringify({ voice: params }));
},
messageId: '123',
}),
on: () => () => {},
}))(),
settings,
(event) => {
if (typeof event.tts !== 'undefined') {
Expand Down

0 comments on commit e4994e1

Please sign in to comment.