update
This commit is contained in:
parent
01aecb888e
commit
90cc2ba2b6
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.env
|
.env
|
||||||
*.swp
|
*.swp
|
||||||
curl.sh
|
curl.sh
|
||||||
|
.vscode
|
||||||
|
@ -56,6 +56,7 @@ for file_name in os.listdir(args.dir_path):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Send the transcription request and retrieve the results
|
# Send the transcription request and retrieve the results
|
||||||
|
print(f"to be processed {file_path}")
|
||||||
audio_file = open(file_path, 'rb')
|
audio_file = open(file_path, 'rb')
|
||||||
response = requests.post(url, headers=headers, params=params, data=data, files={'file': audio_file})
|
response = requests.post(url, headers=headers, params=params, data=data, files={'file': audio_file})
|
||||||
transcript = response.text
|
transcript = response.text
|
||||||
|
Loading…
Reference in New Issue
Block a user