This message was deleted.
# ask-for-help
s
This message was deleted.
👀 1
u
I use scipy wavfile.read and soundfile for decoding, but both of them are abnormal
s
What's wrong with it?
u
This is the code I use.
Copy code
@svc.api(input=File(), output=Text())
def transcribe(data):
    arr_data, sr = sf.read(file=io.BytesIO(data.read()), dtype="float32")
    # arr_data = wavfile.read(io.BytesIO(data.read()))[1]
    audio = torch.from_numpy(arr_data[..., 0].copy()).float()
When you use this code, it is different from the value read by local.
s
Ok, thanks for the code, I'll try to repro this.
gratitude thank you 1
u
Oh, I’m sorry. When I checked, I checked it in a different way from the way I received it from local.
s
Ah ok!
u
Is there a way to get the wav file from the web?
s
Do you mean return the file as the result?
u
This is how to decode the wav file uploaded on the web.