AssemblyAI / assemblyai-node-sdk

The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, audio intelligence models, as well as the latest LeMUR models.
https://www.assemblyai.com
MIT License
38 stars 11 forks source link

Add support for uploading files using data-URIs #47

Closed Swimburger closed 6 months ago

Swimburger commented 6 months ago

In front-end web development, data-URIs are sometimes used to represent files. A user was recently using the Expo framework for building "native" apps. When retrieving a file in Expo, the URI for the file is a data-URI.

Passing the data URI to client.files.upload(dataUri), client.transcripts.transcribe({audio: dataUri}) and client.transcripts.submit({audio: dataUri}) should just work.

Swimburger commented 6 months ago

Fixed in https://github.com/AssemblyAI/assemblyai-node-sdk/releases/tag/v4.4.2