Skip to content

Commit 2760217

Browse files
authored
correcting supported types error
* removed opus qualifier from ogg/opus * added mp3 This should probably be either generated automatically or else dropped. Or at least retrieved from the content-type file. But this is good enough for now.
1 parent 603446a commit 2760217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech-to-text/file-player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function getContentTypeFromFile(file) {
6666
if (ct) {
6767
resolve(ct);
6868
} else {
69-
var err = new Error('Unable to determine content type from file header; only wav, flac, ogg/opus, and webm are supported.');
69+
var err = new Error('Unable to determine content type from file header. Supported file types: wav, mp3, flac, ogg, and webm.');
7070
err.name = FilePlayer.ERROR_UNSUPPORTED_FORMAT;
7171
reject(err);
7272
}

0 commit comments

Comments
 (0)