AshDavid12 commited on
Commit
c6843a9
·
1 Parent(s): 794caf6

compression ratio error rate 2.5

Browse files
Files changed (2) hide show
  1. client.py +1 -1
  2. infer.py +1 -1
client.py CHANGED
@@ -62,7 +62,7 @@ async def send_audio(websocket):
62
  total_chunks += 1
63
  total_bytes_sent += len(chunk)
64
  #logger.debug(f"Sent chunk {total_chunks}: {len(chunk)} bytes")
65
- await asyncio.sleep(0.1) # Simulate real-time streamin
66
  #logger.info(f"Finished sending audio data: {total_chunks} chunks sent, total bytes sent: {total_bytes_sent}")
67
 
68
  except Exception as e:
 
62
  total_chunks += 1
63
  total_bytes_sent += len(chunk)
64
  #logger.debug(f"Sent chunk {total_chunks}: {len(chunk)} bytes")
65
+ #await asyncio.sleep(0.1) # Simulate real-time streamin
66
  #logger.info(f"Finished sending audio data: {total_chunks} chunks sent, total bytes sent: {total_bytes_sent}")
67
 
68
  except Exception as e:
infer.py CHANGED
@@ -200,7 +200,7 @@ def sync_transcribe_audio(audio_data):
200
 
201
  logger.info('Starting transcription...')
202
  segments, info = model.transcribe(
203
- audio_data, language="he", word_timestamps=True
204
  )
205
  logger.info('Transcription completed')
206
 
 
200
 
201
  logger.info('Starting transcription...')
202
  segments, info = model.transcribe(
203
+ audio_data, language="he",compression_ratio_threshold=2.5, word_timestamps=True
204
  )
205
  logger.info('Transcription completed')
206