File size: 485 Bytes
fcd58ee 586518f fcd58ee abe0fe2 fcd58ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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()
|