Skip to content

Commit 9a81c79

Browse files
Anwesha NaskarAnwesha Naskar
authored andcommitted
Added webm content type
1 parent 586c18c commit 9a81c79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

speech-to-text/content-type.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ var headerContentTypes = {
1212
fLaC: 'audio/flac',
1313
RIFF: 'audio/wav',
1414
OggS: 'audio/ogg',
15-
ID3: 'audio/mp3'
15+
ID3: 'audio/mp3',
16+
'\u001aEߣ': 'audio/webm' // String for first four hex's of webm: [1A][45][DF][A3] (https://www.matroska.org/technical/specs/index.html#EBML)
1617
};
1718

1819
/**

0 commit comments

Comments
 (0)