An open API service indexing awesome lists of open source software.

https://github.com/lukeocodes/supported-formats

A package to test if your media file is supported for transcription.
https://github.com/lukeocodes/supported-formats

ai audio deepgram javascript node srt subtitles transcribe transcript typescript video webvtt

Last synced: about 2 months ago
JSON representation

A package to test if your media file is supported for transcription.

Awesome Lists containing this project

README

          

# Supported Formats

[![Circle CI Status](https://img.shields.io/circleci/build/github/lukeocodes/supported-formats)](https://app.circleci.com/pipelines/github/lukeocodes/supported-formats?filter=all)
[![ISC](https://img.shields.io/github/license/lukeocodes/supported-formats)](https://choosealicense.com/licenses/isc/)

This package is simply a small test to check if your filetype is supported for transcription by Deepgram. Deepgram supports over 100 different audio formats and encodings. For example, some of the most common audio formats and encodings we support include MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4A, Ogg, Opus, and WebM.

> Because audio format is largely unconstrained, we always recommend to ensure compatibility by testing small sets of audio when first operating with new audio sources.

This is not an exhaustive or official list. If it isn't on the list, try it anyway. You might find the audio source can be transcribed.

# Issues

For problems directly related to this package, [add an issue on GitHub](https://github.com/lukeocodes/supported-formats/issues/new).

# Usage

```sh-session
$ npm install supported-formats
# $ yarn add supported-formats
```

Catch an error when a file isn't supported.

```js
import { supported } from "supported-formats";

try {
supported(filePath);
// is supported
} catch (err: any) {
this.error(err);
// is not supported
}
```

# Developing

This project can be cloned and ran locally.

```sh-session
$ npm install
# $ yarn
```

# Tests

```sh-session
$ npm run test
# $ yarn test
```

# Contributors

Would you like to contribute to this project? Check out our [contributing guide](./.github/CONTRIBUTING.md).



Made with [contrib.rocks](https://contrib.rocks).