Looping through list of podcast episodes using Python #49
-
I've been able to transcribe one of my podcast episodes using the "Code tutorial: Transcribe pre-recorded audio" demo code in the dashboard. The demo code has the bulk of the logic in the main() routine, including the information on the file being processed. The main body of the script it simply: I'm not familiar with asyncio and why it is needed. I'm looking for guidance on how to loop through multiple files to transcribe using the asyncio call. I'm familiar with how to loop through files in Python but the use of asyncio has me a bit confused. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Hi @johnkmayo which Operating System and version of Python are you using? |
Beta Was this translation helpful? Give feedback.
-
You could do something like the below example I created. The only difference is the files are on my local machine in a folder called
|
Beta Was this translation helpful? Give feedback.
-
If you provide me your hosted files I can try with those. |
Beta Was this translation helpful? Give feedback.
-
Also, in terms of asyncio it's really not needed for prerecorded audio transcriptions because that type doesn't use websockets like streaming or real-time transcription. It allows one to run code concurrently. For example, if you're trying to run multiple tasks in your code with asyncio you don't have to wait until the task is finished to run the next task, they can happen at the same time. So I suppose asyncio makes the code runtime a little faster. |
Beta Was this translation helpful? Give feedback.
You could do something like the below example I created. The only difference is the files are on my local machine in a folder called
speeches
and not hosted.