Translator / run_client.py
daihui.zhang
add logging format
c00c06f
raw
history blame
486 Bytes
from transcribe.client import TranscriptionClient
client = TranscriptionClient(
"localhost",
9090,
lang="zh",
dst_lang="en",
save_output_recording=False, # Only used for microphone input, False by Default
output_recording_filename="./output_recording.wav", # Only used for microphone input
max_clients=4,
max_connection_time=600,
mute_audio_playback=False, # Only used for file input, False by Default
)
if __name__ == '__main__':
client()