minor corrections
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 5,
|
"execution_count": 4,
|
||||||
"id": "d66866af",
|
"id": "d66866af",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Loading model...\n",
|
"Loading model...\n",
|
||||||
"Transcribing file number number 1: sample_audio\\Armstrong_Small_Step.ogg\n",
|
"Transcribing file number number 1: Armstrong_Small_Step\n",
|
||||||
"Model and file loaded...\n",
|
"Model and file loaded...\n",
|
||||||
"Starting transcription...\n",
|
"Starting transcription...\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Transcribing file number number 2: sample_audio\\Axel_Pettersson_röstinspelning.ogg\n",
|
"Transcribing file number number 2: Axel_Pettersson_röstinspelning\n",
|
||||||
"Model and file loaded...\n",
|
"Model and file loaded...\n",
|
||||||
"Starting transcription...\n",
|
"Starting transcription...\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -94,10 +94,10 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"'Finished transcription, files can be found in sample_audio/'"
|
"'Finished transcription, files can be found in sample_audio/transcriptions'"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 5,
|
"execution_count": 4,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@@ -105,6 +105,14 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"transcribe(path, file_type, model, language, verbose)"
|
"transcribe(path, file_type, model, language, verbose)"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "0bc67265",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ def transcribe(path, file_type, model=None, language=None, verbose=True):
|
|||||||
for idx,file in enumerate(glob_file):
|
for idx,file in enumerate(glob_file):
|
||||||
title = os.path.basename(file).split('.')[0]
|
title = os.path.basename(file).split('.')[0]
|
||||||
|
|
||||||
print('Transcribing file number number {}: {}'.format(idx+1,file))
|
print('Transcribing file number number {}: {}'.format(idx+1,title))
|
||||||
print('Model and file loaded...\nStarting transcription...\n')
|
print('Model and file loaded...\nStarting transcription...\n')
|
||||||
result = model.transcribe(
|
result = model.transcribe(
|
||||||
file,
|
file,
|
||||||
@@ -48,4 +48,4 @@ def transcribe(path, file_type, model=None, language=None, verbose=True):
|
|||||||
|
|
||||||
print('\nFinished file number {}.\n\n\n'.format(idx+1))
|
print('\nFinished file number {}.\n\n\n'.format(idx+1))
|
||||||
|
|
||||||
return 'Finished transcription, files can be found in {}'.format(path)
|
return 'Finished transcription, files can be found in {}transcriptions'.format(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user