Please use list for creating a lot of threads (not variables like t1) And not use raw `time` module, there is `timeit` or etc (Search info about that why it is more preferred)
i made this video to show you how to disable the GIL in python 3.13, and it's not released yet, when they relase python 3.13 i will do a complex example.
noise will always be there, no matter how much you try to remove. the point is to reduce it as much as possible. Noise comes from the microphone/interface/cables/software/USB ports. That's just something you can not completely get rid of.
chunks and saving .txt from these chunks in files, add logic to see what chunks it already has (if you face error or sth, and you want to come back and don't have to start over, just continue where it left off)
wow , Your content is truly in-depth and engaging amidst the sea of mundane Python fundamental videos. I really look forward to seeing more in-depth Python content from you, but you should consider releasing videos in a higher resolution than 1080p.
conda activate open_chatting does not work on my computer. "EnvironmentNameNotFound: Could not find conda environment: open_chatting You can list all discoverable environments with `conda info --envs`."
install conda toolkit then create an environment called open_chatting by typing : conda create --name open_chatting after that install the libraries that i mentioned in the video then run the code
Thanks man, this seems really cool! Unfortunately I am getting this error when I set up conda and try to run your code: OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\Users\ agha\\.cache\\huggingface\\hub\\models--speechbrain--spkrec-ecapa-voxceleb\\snapshots\\5c0be3875fda05e81f3c004ed8c7c06be308de1e\\hyperparams.yaml' -> 'C:\\Users\ agha\\.cache\\torch\\pyannote\\speechbrain\\hyperparams.yaml' Does anyone have an idea on how to deal with this? I registered on hugging face and I am using my access token and I think I installed all of the required dependencies
Wow, the transcript takes like two times the duration of the file to process. I guess that this solution wouldn’t work to monitor hours of call recordings unless you use gpu servers.
Thanks for the demo. I am getting the following error, even while using your audio.mp3 file: end = int(millisec(j[3])) return (int)((int(spl[0]) * 60 * 60 + int(spl[1]) * 60 + float(spl[2])) * 1000) ValueError: invalid literal for int() with base 10: ''
From the error message and the code, it seems that the error is happening because the millisec function is trying to convert an empty string to an integer. The millisec function splits a time string, given in the format "hh:mm:ss.sss", into hours, minutes, and seconds, and then converts these components to milliseconds. Here is an example of the string being parsed: ['[', '00:00:00.998', '-->', '', '00:00:20.622]', 'G', 'SPEAKER_01'] When this loop runs, it returns an empty 'end' string: for l in range(len(k)): j = k[l].split(" ") start = int(millisec(j[1])) end = int(millisec(j[3])) The array position you want for 'end' is 4, not 3. Plus, it has a ']' symbol, so it must be cleaned up: for l in range(len(k)): j = k[l].split(" ") start = int(millisec(j[1].rstrip(']'))) # remove trailing ']' end = int(millisec(j[4].rstrip(']'))) # remove trailing ']'
I advise you to use python anaconda to create development environment .Then install whisper openai ,after installing this library run a simple test to check if everything works correctly .Then install pyannote library and also run a simple test ( read carefully the installation guides maybe you missed something while installing the library)