File size: 486 Bytes
c00c06f
1c12fab
 
 
 
0698c3c
1c12fab
da36464
1c12fab
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

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()