Skip to content

Commit

Permalink
fix: needs create
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEVolk committed Jan 29, 2023
1 parent 3e33a04 commit 171eee0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/node_modules/**
package-lock.json
lib
lib
response.opus
2 changes: 2 additions & 0 deletions examples/audio.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { writeFile } from 'node:fs/promises';
import YandexAliceClient from '../lib/index.js';

const client = new YandexAliceClient();
Expand All @@ -6,4 +7,5 @@ await client.connect();
const response = await client.sendText('hello world', true);
console.log(response);

await writeFile('response.opus', response.audio);
await client.close();
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class YandexAliceClient {

this.requests.set(requestId, {
at: new Date(),
needs: new Set(['VinsResponse']),
needs,
directives: [],
resolve,
reject
Expand Down

0 comments on commit 171eee0

Please sign in to comment.