You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to deploy the client on a remote server (without microphone and speakers), and it will report the following error:
Then I modified the play_file() module in client.py as follows:
with wave.open(filename, "rb") as wavfile:
try:
while self.recording:
data = wavfile.readframes(self.chunk)
if data == b"":
break
audio_array = self.bytes_to_float_array(data)
self.send_packet_to_server(audio_array.tobytes())
# self.stream.write(data)
wavfile.close()
assert self.last_response_recieved
while time.time() - self.last_response_recieved < self.disconnect_if_no_response_for:
continue
self.send_packet_to_server(Client.END_OF_AUDIO.encode('utf-8'))
if self.server_backend == "faster_whisper":
self.write_srt_file(self.srt_file_path)
# self.stream.close()
self.close_websocket()
I recived the missing result:
please tell me how to fix it ,thank you~
The text was updated successfully, but these errors were encountered:
I want to deploy the client on a remote server (without microphone and speakers), and it will report the following error:
Then I modified the
play_file()
module inclient.py
as follows:I recived the missing result:
please tell me how to fix it ,thank you~
The text was updated successfully, but these errors were encountered: