facebookresearch / playtorch

PlayTorch is a framework for rapidly creating mobile AI experiences.
https://playtorch.dev/
MIT License
830 stars 101 forks source link

audioFromTensor or audioFromBlob or audioFromArrayBuffer #200

Closed BlazJurisic closed 1 year ago

BlazJurisic commented 1 year ago

Area Select

react-native-pytorch-core (core package)

Description

Please, add up functionality for converting audio tensor to audio or saving audio tensor to file just like there is an implementation with images

BlazJurisic commented 1 year ago

I have found experimental.audioFromBytes in experimental namespace but keep getting [Error: Expect jsi::Number or jsi::Array, but another type is given]

BlazJurisic commented 1 year ago

managed to work around the issue it seems, audio resampling would be also a nice thing to have, definitely