Skip to content

Commit

Permalink
allow wav files (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
bemble authored Sep 12, 2024
1 parent cbcde64 commit 42c4dd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/assist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const WAKE_WORD_ALLOWED_CONTENT_TYPES = [
"audio/webm",
"audio/ogg",
"audio/mp4",
"audio/wav",
];
const WAKE_WORD_ALLOWED_NAMES = ["casita", "ok_nabu"];
const NEGATIVE_WAKE_WORD_ALLOWED_NAMES = ["ok_now"];
Expand Down
1 change: 1 addition & 0 deletions tests/assist.handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const FILES_VALID = [
{ contentType: "audio/ogg", fileExtension: ".ogg" },
{ contentType: "audio/mp4", fileExtension: ".mp4" },
{ contentType: "audio/ogg;codec=opus", fileExtension: ".ogg" },
{ contentType: "audio/wav", fileExtension: ".wav" },
];

describe("Assist handler", function () {
Expand Down

0 comments on commit 42c4dd6

Please sign in to comment.