MCPcopy Create free account
hub / github.com/dialect-app/dialect / _speech_reset

Method _speech_reset

dialect/window.py:916–927  ·  view source on GitHub ↗
(self, set_ready: bool = True)

Source from the content-addressed store, hash-verified

914 self._speech_reset(False)
915
916 def _speech_reset(self, set_ready: bool = True):
917 if not self.player:
918 return
919
920 self.player.set_state(Gst.State.NULL)
921 self.current_speech = None
922 self.speech_loading = False
923 self._check_speech_enabled()
924
925 if set_ready:
926 self.src_speech_btn.ready()
927 self.dest_speech_btn.ready()
928
929 def _on_gst_message(self, _bus, message: Gst.Message):
930 if message.type == Gst.MessageType.EOS or message.type == Gst.MessageType.ERROR:

Callers 4

_on_src_listen_actionMethod · 0.95
_on_speechMethod · 0.95
_on_gst_messageMethod · 0.95

Calls 2

_check_speech_enabledMethod · 0.95
readyMethod · 0.80

Tested by

no test coverage detected