Skip to content

ValueError: Soundfile is either not in the correct format or is malformed. Ensure that the soundfile has a valid audio file extension (e.g. wav, flac or mp3) and is not corrupted. #20

@Pratik-Ghute

Description

@Pratik-Ghute

SRT-SERVER : ValueError: Soundfile is either not in the correct format or is malformed. Ensure that the soundfile has a valid audio file extension (e.g. wav, flac or mp3) and is not corrupted. If reading from a remote URL, ensure that the URL is the full address to download the audio file.

Voicechat2-app : ERROR:voicechat2:Transcription error: 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='http://localhost:8001/inference'
ERROR:voicechat2:Traceback (most recent call last):
File "/home/ubuntu/call_voicebot/voicechat2/voicechat2.py", line 155, in transcribe_audio
result = await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniconda3/envs/voicechat2/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1281, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='http://localhost:8001/inference'

ERROR:voicechat2:Error during processing: 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='http://localhost:8001/inference'
ERROR:voicechat2:Traceback (most recent call last):
File "/home/ubuntu/call_voicebot/voicechat2/voicechat2.py", line 209, in websocket_endpoint
text = await transcribe_audio(audio_data, session_id, turn_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/call_voicebot/voicechat2/voicechat2.py", line 155, in transcribe_audio
result = await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniconda3/envs/voicechat2/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1281, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='http://localhost:8001/inference'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions