# supported-formats

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

Latest version **1.0.9** (published 2022-02-25) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install supported-formats
pnpm add supported-formats
yarn add supported-formats
bun add supported-formats
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2022-02-25 |
| First published | 2022-02-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Luke Oliff |
| Maintainers | lukeoliff |
| Keywords | deepgram, transcript, audio, video, subtitles, webvtt, srt, transcribe, ai, javascript, node, typescript |

## Links

- npm: https://www.npmjs.com/package/supported-formats
- Repository: https://github.com/lukeocodes/supported-formats
- Homepage: https://github.com/lukeocodes/supported-formats#readme
- Issues: https://github.com/lukeocodes/supported-formats/issues
- Funding: https://github.com/sponsors/lukeocodes
- npm.io page: https://npm.io/package/supported-formats

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2022-02-25
- 1.0.8 — 2022-02-25
- 1.0.7 — 2022-02-25
- 1.0.6 — 2022-02-25
- 1.0.5 — 2022-02-25
- 1.0.4 — 2022-02-25
- 1.0.3 — 2022-02-25
- 1.0.2 — 2022-02-25
- 1.0.1 — 2022-02-25
- 1.0.0 — 2022-02-25
- 0.0.0-development — 2022-02-25

## 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).

<a href="https://github.com/lukeocodes/supported-formats/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=lukeocodes/supported-formats" />
</a>

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

---
_Source: https://npm.io/package/supported-formats · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
