MCPcopy Index your code

hub / github.com/Dadangdut33/Speech-Translate / functions

Functions557 in github.com/Dadangdut33/Speech-Translate

↓ 587 callersMethodpack
(self, **kwargs)
speech_translate/ui/custom/label.py:21
↓ 288 callersMethodget
(self, *args, **kwargs)
speech_translate/utils/custom/queue.py:79
↓ 175 callersMethodsave_key
Save setting by key
speech_translate/utils/setting.py:366
↓ 81 callersFunctionmbox
Message Box, made simpler ## Styles: ## 0 : info ## 1 : warning ## 2 : error ## 3 : Yes No
speech_translate/ui/custom/message.py:75
↓ 81 callersFunctiontk_tooltip
Create a tooltip for a given widget
speech_translate/ui/custom/tooltip.py:105
↓ 67 callersMethodstart
(self)
speech_translate/ui/custom/audio.py:48
↓ 52 callersMethoderror
(self, message)
speech_translate/utils/whisper/load.py:38
↓ 49 callersFunctiontk_tooltips
Create multiple tooltips for a list of widgets
speech_translate/ui/custom/tooltip.py:120
↓ 44 callersMethodmodel_btn_checker
Helper to check if model is downloaded. It will first change btn state to disabled to prevent user from clicking it, set text to "Che
speech_translate/ui/frame/setting/general.py:640
↓ 24 callersMethodwrite
(self, buf)
speech_translate/_logging.py:42
↓ 22 callersFunctionupdate_q_process
Update the processed list of dict.
speech_translate/utils/audio/file.py:44
↓ 21 callersMethodset_text
(self, text)
speech_translate/ui/custom/label.py:24
↓ 19 callersFunctionnative_notify
Native notification
speech_translate/utils/helper.py:356
↓ 16 callersFunctionemoji_img
Generate emoji image Parameters ---------- size : int size of the image text : str emoji text Returns ------
speech_translate/utils/helper.py:472
↓ 15 callersMethoderror_notif
(self, err: str, use_mbox=False, title="Unexpected Error!")
speech_translate/ui/window/main.py:895
↓ 14 callersFunctionget_task_format
Get task format Parameters ---------- task : str Str for task task_lang : str Str for task lang task_with : str
speech_translate/utils/whisper/helper.py:121
↓ 14 callersFunctionup_first_case
(string: str)
speech_translate/utils/helper.py:53
↓ 13 callersFunctionstart_file
Open a folder or file in the default application.
speech_translate/utils/helper.py:326
↓ 13 callersMethodtoggle_enable_threshold
Toggle the enable threshold checkbutton Parameters ---------- open_stream : bool, optional open the stre
speech_translate/ui/frame/setting/record.py:309
↓ 12 callersMethoddisable_interactions
(self)
speech_translate/ui/window/main.py:1301
↓ 12 callersFunctionget_diff
(list1, list2)
test/language/language.py:107
↓ 12 callersMethodstop
(self)
speech_translate/ui/custom/audio.py:55
↓ 10 callersMethodenable_interactions
(self)
speech_translate/ui/window/main.py:1318
↓ 10 callersFunctionpopup_menu
Display popup menu
speech_translate/utils/helper.py:433
↓ 10 callersMethodtoggle_disable
(self, disable: bool)
speech_translate/ui/custom/combobox.py:136
↓ 9 callersFunctionget_default_download_root
Get the default download root Returns ------- str the default download root
speech_translate/utils/whisper/download.py:141
↓ 9 callersFunctionget_whisper_lang_similar
Get whisper language from similar. This is used because we want to keep the original language name for the translation engine So everytime we
speech_translate/utils/translate/language.py:246
↓ 9 callersFunctionkill_thread
Attempt to kill thread, credits: https://github.com/JingheLee/KillThread Parameters ---------- thread : Thread Thread instan
speech_translate/utils/helper.py:27
↓ 9 callersMethodstart_lb
Start load bar
speech_translate/ui/window/main.py:1359
↓ 8 callersMethoddisable_file_process
(self)
speech_translate/linker.py:124
↓ 8 callersFunctioninsert_entry_readonly
(element: ttk.Entry, value: str)
speech_translate/utils/helper.py:579
↓ 8 callersMethodupdate_sheet
(self, queue=None)
speech_translate/ui/custom/dialog.py:947
↓ 7 callersMethodcallback_export_to
( self, value: Union[Literal["txt"], Literal["csv"], Literal["json"], Literal["srt"], Literal["ass"],
speech_translate/ui/frame/setting/export.py:500
↓ 7 callersMethodcbtn_task_change
(self)
speech_translate/ui/custom/dialog.py:361
↓ 7 callersFunctionfilename_only
Extracts the name of the file only from a given filename, considering the last dot as the separator. Parameters ---------- filen
speech_translate/utils/helper.py:397
↓ 7 callersFunctionsave_output_stable_ts
( result: Union[stable_whisper.WhisperResult, StableTsResultDict], outname, output_formats: List, sj )
speech_translate/utils/whisper/save.py:77
↓ 7 callersFunctionupdate_status_lbl
()
speech_translate/utils/audio/record.py:580
↓ 6 callersMethod__notify
Notify from setting
speech_translate/utils/setting.py:285
↓ 6 callersMethodafter_rec_stop
(self)
speech_translate/ui/window/main.py:1730
↓ 6 callersMethodcheck_model
(self, key: str, is_english: bool, taskname: str, task: Optional[Callable] = None, **kwargs)
speech_translate/ui/window/main.py:1535
↓ 6 callersFunctionclear_dir
(_dir)
build.py:30
↓ 6 callersFunctionget_root
()
speech_translate/utils/tk/style.py:75
↓ 6 callersFunctionget_similar_keys
Get similar key in a dict by key. This will search wether search_key is in the dict provided or not. The first search, it will search if the
speech_translate/utils/helper.py:77
↓ 6 callersFunctionget_whisper_lang_source
Get language source with auto checking model is v3 or not to pass either cantonese or not Parameters ---------- tl_engine : str t
speech_translate/utils/translate/language.py:415
↓ 6 callersMethodinput_device_menu
Return a menu for input device combobox Args: theType (Literal["hostAPI", "mic", "speaker"]): The type of the combobox
speech_translate/ui/window/main.py:950
↓ 6 callersFunctionopen_url
To open a url in the default browser
speech_translate/utils/helper.py:345
↓ 6 callersFunctionupdate_options_with_args
(arg_key: str, options: Optional[dict] = None, pop: bool = False)
speech_translate/utils/whisper/load.py:74
↓ 5 callersFunctioncbtn_invoker
Checkbutton invoker Invoking twice will make it unchecked
speech_translate/utils/helper.py:295
↓ 5 callersMethodcbtn_task_change
(self, _event=None)
speech_translate/ui/window/main.py:1203
↓ 5 callersMethodclose_meter
Close the meter and the stream
speech_translate/ui/frame/setting/record.py:441
↓ 5 callersMethodenable_rec
(self)
speech_translate/ui/window/main.py:1296
↓ 5 callersFunctionget_list_of_dict
Get list of dict by key and value. Parameters ---------- list_of_dict : List[Dict] List of dict to search key : str K
speech_translate/utils/helper.py:57
↓ 5 callersFunctionno_connection_notify
Notify user that they are probably not connected to the internet
speech_translate/utils/helper.py:374
↓ 5 callersMethodopen_app
(self)
speech_translate/ui/window/main.py:214
↓ 5 callersFunctionopen_folder
Open folder of a give filename path Parameters ---------- filename : str The filename
speech_translate/utils/helper.py:307
↓ 5 callersFunctionparse_args_stable_ts
Parse arguments to be passed onto stable ts with each mode in mind Pass in kwargs if needed Parameters ---------- arguments : str
speech_translate/utils/whisper/load.py:42
↓ 5 callersMethodput
(self, *args, **kwargs)
speech_translate/utils/custom/queue.py:75
↓ 5 callersMethodrec_stop
(self)
speech_translate/ui/window/main.py:1722
↓ 5 callersMethodsave_win_size
Save window size
speech_translate/ui/window/main.py:744
↓ 5 callersMethodset_auto
(self, auto)
speech_translate/ui/custom/audio.py:42
↓ 5 callersMethodset_threshold
(self, threshold)
speech_translate/ui/custom/audio.py:39
↓ 5 callersMethodstop_lb
Stop load bar Parameters ---------- mode : Literal["mic", "speaker", "file", None], op
speech_translate/ui/window/main.py:1366
↓ 5 callersMethodtb_clear
(self)
speech_translate/ui/window/main.py:1155
↓ 4 callersMethod__init__
(self, master: Union[Tk, Toplevel], title: str, headers: List, queue: List[List], theme: str)
speech_translate/ui/custom/dialog.py:860
↓ 4 callersFunctionapp_version
()
build.py:15
↓ 4 callersFunctionbeep
()
speech_translate/utils/audio/beep.py:10
↓ 4 callersMethodchange_decoding_preset
(self, value: str)
speech_translate/ui/frame/setting/transcribe.py:927
↓ 4 callersFunctionchoose_color
Choose color from colorchooser and insert it to _widget Parameters ---------- : widget to insert the color initialColor :
speech_translate/utils/helper.py:415
↓ 4 callersMethoddestroy_transient_toplevel
(self, name, similar=False)
speech_translate/ui/window/main.py:1501
↓ 4 callersMethoddisable_file_tc
(self)
speech_translate/linker.py:130
↓ 4 callersMethoddisable_file_tl
(self)
speech_translate/linker.py:136
↓ 4 callersMethoddisable_interactions
(self)
speech_translate/ui/custom/dialog.py:472
↓ 4 callersMethoddisable_rec
(self)
speech_translate/ui/window/main.py:1291
↓ 4 callersMethodenable_file_process
(self)
speech_translate/linker.py:121
↓ 4 callersMethodenable_interactions
(self)
speech_translate/ui/custom/dialog.py:482
↓ 4 callersMethodexport_rec
(self, mode: Literal["Transcribe", "Translate"])
speech_translate/ui/window/main.py:1400
↓ 4 callersMethodfrom_file_stop
(self, prompt=False, notify=True, master=None)
speech_translate/ui/window/main.py:1834
↓ 4 callersFunctionget_env_name
()
build.py:11
↓ 4 callersFunctionget_similar_in_list
Get similar item in a list by key. This will search wether search_key is in the list provided or not. The first search, it will search if the
speech_translate/utils/helper.py:105
↓ 4 callersFunctionget_speech_webrtc
( data: bytes, sample_rate: int, frame_duration_ms: int, vad: Vad, get_only_first_frame: bool = True )
speech_translate/utils/audio/audio.py:134
↓ 4 callersFunctionget_tc_args
Get arguments / parameter to load to stable ts for transcribe / translate using whisper and get their respective function Parameters
speech_translate/utils/whisper/load.py:379
↓ 4 callersMethodmap_result_lists
Map List of whisper result according to user setting while also calculating its color based on the confidence value. Parameters
speech_translate/linker.py:236
↓ 4 callersMethodmodel_download
(self, model: str, btn: ttk.Button, use_faster_whisper: bool)
speech_translate/ui/frame/setting/general.py:577
↓ 4 callersFunctionremove_segments_by_str
Remove segments that contains the string specified in ``str_to_find``. Some of the code on this function is taken from ``stable_whisper.Whisp
speech_translate/utils/whisper/result.py:39
↓ 4 callersMethodset_db
(self, db)
speech_translate/ui/custom/audio.py:30
↓ 4 callersMethodset_item
Set the combobox value to the item selected in the menu
speech_translate/ui/custom/combobox.py:200
↓ 4 callersFunctionsplit_res
Split the segment results if max char or max word is set Parameters ---------- result : WhisperResult The result from whisper
speech_translate/utils/whisper/result.py:11
↓ 4 callersFunctionto_silero
Converts a byte array to a 32-bit float tensor. Parameters ---------- sound_bytes : byte array A byte array representing a sound
speech_translate/utils/audio/audio.py:143
↓ 4 callersMethodupdate_preview_export_format
(self)
speech_translate/ui/frame/setting/export.py:459
↓ 4 callersMethodupdate_result_display
Update display of the result to the respective text box. Parameters ---------- total_len : int Total word length
speech_translate/linker.py:146
↓ 4 callersMethodupdate_tl
Update the translated text box with the new text. Parameters ---------- new_res : New result to be added to the
speech_translate/linker.py:343
↓ 3 callersMethodalignment_stop
(self, prompt=False, notify=True, master=None)
speech_translate/ui/window/main.py:2000
↓ 3 callersFunctionbind_focus_recursively
Bind focus on widgets recursively
speech_translate/utils/helper.py:497
↓ 3 callersMethodempty
Reliable implementation of multiprocessing.Queue.empty()
speech_translate/utils/custom/queue.py:88
↓ 3 callersFunctiongenerate_color
Generate color based on accuracy Parameters ---------- accuracy : float Accuracy to map low_color : str Low color in
speech_translate/utils/helper.py:174
↓ 3 callersMethodget_input
(self)
speech_translate/ui/custom/dialog.py:777
↓ 3 callersFunctionget_input_devices
Get the input devices (mic) from the specified hostAPI.
speech_translate/utils/audio/device.py:105
↓ 3 callersFunctionget_model_args
Get arguments / parameter to load to stable ts Parameters ---------- setting_cache: dict Setting value Returns -------
speech_translate/utils/whisper/load.py:548
↓ 3 callersFunctionget_output_devices
Get the output devices (speaker) from the specified hostAPI.
speech_translate/utils/audio/device.py:134
↓ 3 callersFunctionget_proxies
Proxies in setting is saved in a string format separated by \n This function will convert it to a dict format and get the proxies randomly
speech_translate/utils/helper.py:278
next →1–100 of 557, ranked by callers