mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Small fix
Number timestamps are now in ms.
This commit is contained in:
@@ -280,8 +280,8 @@
|
||||
"sample_rate = 16000\n",
|
||||
"# convert ms in timestamps to samples\n",
|
||||
"for timestamp in number_timestamps:\n",
|
||||
" timestamp['start'] = int(timestamp['start'] * sample_rate)\n",
|
||||
" timestamp['end'] = int(timestamp['end'] * sample_rate)"
|
||||
" timestamp['start'] = int(timestamp['start'] * sample_rate / 1000)\n",
|
||||
" timestamp['end'] = int(timestamp['end'] * sample_rate / 1000)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -601,6 +601,7 @@
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"heading_collapsed": true,
|
||||
"hidden": true,
|
||||
"id": "5JHErdB7jsr0"
|
||||
},
|
||||
@@ -640,8 +641,8 @@
|
||||
"sample_rate = 16000\n",
|
||||
"# convert ms in timestamps to samples\n",
|
||||
"for timestamp in number_timestamps:\n",
|
||||
" timestamp['start'] = int(timestamp['start'] * sample_rate)\n",
|
||||
" timestamp['end'] = int(timestamp['end'] * sample_rate)"
|
||||
" timestamp['start'] = int(timestamp['start'] * sample_rate / 1000)\n",
|
||||
" timestamp['end'] = int(timestamp['end'] * sample_rate / 1000)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user