Skip to content

Commit

Permalink
Fix instances of tsx -> ts
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Jan 27, 2025
1 parent 9e43809 commit 15e5d20
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 52 deletions.
6 changes: 3 additions & 3 deletions website/content/docs/assembly.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The AssemblyAI provider provides a single interface for all of AssemblyAI's tran

The AssemblyAI provider provides a `stt` function that allows you to create a speech-to-text transcription function using AssemblyAI. By default, the `stt` function uses the `best` model.

```tsx
```ts
import { transcribe } from 'orate';
import { assemblyai } from 'orate/assemblyai';

Expand All @@ -43,7 +43,7 @@ const text = await transcribe({

You can specify the model to use by passing it as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: assemblyai.stt('nano'),
audio: someArrayBuffer,
Expand All @@ -52,7 +52,7 @@ const text = await transcribe({

You can also specify specific AssemblyAI properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: assemblyai.stt('nano', {
punctuate: false,
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/azure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The Azure provider provides a single interface for all of Azure's speech and tra

The Azure provider provides a `tts` function that allows you to create a text-to-speech synthesis function using Azure Speech Service.

```tsx
```ts
import { speak } from 'orate';
import { azure } from 'orate/azure';

Expand All @@ -44,7 +44,7 @@ const speech = await speak({

You can specify the voice to use by passing it as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: azure.tts('en-US-AriaNeural'),
prompt: 'Hello, world!',
Expand All @@ -55,7 +55,7 @@ const speech = await speak({

The Azure provider provides a `stt` function that allows you to create a speech-to-text transcription function using Azure Speech Service.

```tsx
```ts
import { transcribe } from 'orate';
import { azure } from 'orate/azure';

Expand Down
12 changes: 6 additions & 6 deletions website/content/docs/deepgram.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Deepgram provider provides a single interface for all of Deepgram's speech a

The Deepgram provider provides a `tts` function that allows you to create a text-to-speech synthesis function using Deepgram TTS. By default, the `tts` function uses the `aura` model with the `asteria-en` voice.

```tsx
```ts
import { speak } from 'orate';
import { deepgram } from 'orate/deepgram';

Expand All @@ -43,7 +43,7 @@ const speech = await speak({

You can specify the model and voice to use by passing them as arguments to the `tts` function.

```tsx
```ts
const speech = await speak({
model: deepgram.tts('aura', 'luna-en'),
prompt: 'Hello, world!',
Expand All @@ -52,7 +52,7 @@ const speech = await speak({

You can also specify specific Deepgram properties by passing them as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: deepgram.tts('aura', 'luna-en', {
sample_rate: 16000
Expand All @@ -65,7 +65,7 @@ const speech = await speak({

The Deepgram provider provides a `stt` function that allows you to create a speech-to-text transcription function using Deepgram's speech-to-text model. By default, the `stt` function uses the `nova-2` model.

```tsx
```ts
import { transcribe } from 'orate';
import { deepgram } from 'orate/deepgram';

Expand All @@ -77,7 +77,7 @@ const text = await transcribe({

You can specify the model to use by passing it as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: deepgram.stt('enhanced'),
audio: someArrayBuffer,
Expand All @@ -86,7 +86,7 @@ const text = await transcribe({

You can also specify specific Deepgram properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: deepgram.stt('enhanced', {
filler_words: true,
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/elevenlabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The ElevenLabs provider provides a single interface for all of ElevenLabs' speec

The ElevenLabs provider provides a `tts` function that allows you to create a text-to-speech synthesis function using ElevenLabs. By default, the `tts` function uses the `multilingual_v2` model and the `aria` voice.

```tsx
```ts
import { speak } from 'orate';
import { elevenlabs } from 'orate/elevenlabs';

Expand All @@ -43,7 +43,7 @@ const speech = await speak({

You can specify the model and voice to use by passing them as arguments to the `tts` function.

```tsx
```ts
const speech = await speak({
model: elevenlabs.tts('english_sts_v2', 'charlotte'),
prompt: 'Hello, world!',
Expand All @@ -52,7 +52,7 @@ const speech = await speak({

You can also specify specific ElevenLabs properties by passing them as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: elevenlabs.tts('english_sts_v2', 'charlotte', {
voice_settings: {
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/gladia.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Gladia provider provides a single interface for all of Gladia's transcriptio

The Gladia provider provides a `stt` function that allows you to create a speech-to-text transcription function using Gladia. By default, the `stt` function uses the `best` model.

```tsx
```ts
import { transcribe } from 'orate';
import { gladia } from 'orate/gladia';

Expand All @@ -43,7 +43,7 @@ const text = await transcribe({

You can specify the model to use by passing it as an argument to the `stt` function. By default, the `stt` function uses the `base` model.

```tsx
```ts
const text = await transcribe({
model: gladia.stt('enhanced'),
audio: someArrayBuffer,
Expand All @@ -52,7 +52,7 @@ const text = await transcribe({

You can also specify specific Gladia properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: gladia.stt('enhanced', {
chapterization: true,
Expand Down
10 changes: 5 additions & 5 deletions website/content/docs/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Google provider provides a single interface for all of Google's speech and t

The Google provider provides a `tts` function that allows you to create a text-to-speech synthesis function using Google Cloud Text-to-Speech. By default, the `tts` function uses the `en-US-Casual-K` model.

```tsx
```ts
import { speak } from 'orate';
import { google } from 'orate/google';

Expand All @@ -43,7 +43,7 @@ const speech = await speak({

You can specify the model to use by passing it as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: google.tts('ar-XA-Wavenet-A'),
prompt: 'Hello, world!',
Expand All @@ -52,7 +52,7 @@ const speech = await speak({

You can also specify specific Google properties by passing them as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: google.tts('ar-XA-Wavenet-A', {
advancedVoiceOptions: {
Expand All @@ -67,7 +67,7 @@ const speech = await speak({

The Google provider provides a `stt` function that allows you to create a speech-to-text transcription function using Google Cloud Speech-to-Text. Google is unique in the fact that you need to specify a recognizer.

```tsx
```ts
import { transcribe } from 'orate';
import { google } from 'orate/google';

Expand All @@ -79,7 +79,7 @@ const text = await transcribe({

You can also specify specific Google properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: google.stt('projects/{project}/locations/{region}/recognizers/{recognizer}', {
config: {
Expand Down
12 changes: 6 additions & 6 deletions website/content/docs/ibm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The IBM provider provides a single interface for all of IBM's speech and transcr

The IBM provider provides a `tts` function that allows you to create a text-to-speech synthesis function using IBM Text to Speech. By default, the `tts` function uses the `en-US_AllisonV3Voice` voice.

```tsx
```ts
import { speak } from 'orate';
import { ibm } from 'orate/ibm';

Expand All @@ -43,7 +43,7 @@ const speech = await speak({

You can specify the model and voice to use by passing them as arguments to the `tts` function.

```tsx
```ts
const speech = await speak({
model: ibm.tts('en-AU_HeidiExpressive'),
prompt: 'Hello, world!',
Expand All @@ -52,7 +52,7 @@ const speech = await speak({

You can also specify specific IBM properties by passing them as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: ibm.tts('en-AU_HeidiExpressive', {
pitchPercentage: 5,
Expand All @@ -65,7 +65,7 @@ const speech = await speak({

The IBM provider provides a `stt` function that allows you to create a speech-to-text transcription function using IBM Speech to Text. By default, the `stt` function uses the `en-US_BroadbandModel` model.

```tsx
```ts
import { transcribe } from 'orate';
import { ibm } from 'orate/ibm';

Expand All @@ -77,7 +77,7 @@ const text = await transcribe({

You can specify the model to use by passing it as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: ibm.stt('ar-MS_Telephony'),
audio: someArrayBuffer,
Expand All @@ -86,7 +86,7 @@ const text = await transcribe({

You can also specify specific IBM properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: ibm.stt('ar-MS_Telephony', {
smartFormatting: true,
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/murf.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Murf provider provides a single interface for all of Murf's speech services.

The Murf provider provides a `tts` function that allows you to create a text-to-speech synthesis function using Murf's TTS. By default, the `tts` function uses the `GEN2` model and the `en-US-natalie` voice.

```tsx
```ts
import { speak } from 'orate';
import { murf } from 'orate/murf';

Expand All @@ -43,7 +43,7 @@ const speech = await speak({

You can specify the model and voice to use by passing them as arguments to the `tts` function.

```tsx
```ts
const speech = await speak({
model: murf.tts('GEN1', 'en-AU-joyce'),
prompt: 'Hello, world!',
Expand All @@ -52,7 +52,7 @@ const speech = await speak({

You can also specify specific Murf properties by passing them as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: murf.tts('GEN1', 'en-AU-joyce', {
pitch: 25,
Expand Down
4 changes: 2 additions & 2 deletions website/content/docs/native.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The Native provider provides a single interface for all of the Web Speech API's

The Native provider provides a `stt` function that allows you to create a speech-to-text transcription function using the Web Speech API.

```tsx
```ts
import { transcribe } from 'orate';
import { native } from 'orate/native';

Expand All @@ -39,7 +39,7 @@ const text = await transcribe({

You can specify a language to use by passing it as an option to the `stt` function. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either.

```tsx
```ts
const text = await transcribe({
model: native.stt({ lang: 'en-US' }),
audio: someArrayBuffer,
Expand Down
12 changes: 6 additions & 6 deletions website/content/docs/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The OpenAI provider provides a single interface for all of OpenAI's speech and t

The OpenAI provider provides a `tts` function that allows you to create a text-to-speech synthesis function using OpenAI TTS. By default, the `tts` function uses the `tts-1` model and the `alloy` voice.

```tsx
```ts
import { speak } from 'orate';
import { openai } from 'orate/openai';

Expand All @@ -43,7 +43,7 @@ const speech = await speak({

You can specify the model and voice to use by passing them as arguments to the `tts` function.

```tsx
```ts
const speech = await speak({
model: openai.tts('tts-1', 'alloy'),
prompt: 'Hello, world!',
Expand All @@ -52,7 +52,7 @@ const speech = await speak({

You can also specify specific OpenAI properties by passing them as an argument to the `tts` function.

```tsx
```ts
const speech = await speak({
model: openai.tts('tts-1', 'alloy', {
speed: 1.25,
Expand All @@ -65,7 +65,7 @@ const speech = await speak({

The OpenAI provider provides a `stt` function that allows you to create a speech-to-text transcription function using OpenAI Whisper. By default, the `stt` function uses the `whisper-1` model.

```tsx
```ts
import { transcribe } from 'orate';
import { openai } from 'orate/openai';

Expand All @@ -77,7 +77,7 @@ const text = await transcribe({

You can specify the model to use by passing it as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: openai.stt('whisper-1'),
audio: someArrayBuffer,
Expand All @@ -86,7 +86,7 @@ const text = await transcribe({

You can also specify specific OpenAI properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: openai.stt('whisper-1', {
temperature: 0.5,
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/rev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Rev AI provider provides a single interface for all of Rev AI's transcriptio

The Rev AI provider provides a `stt` function that allows you to create a speech-to-text transcription function using Rev AI. By default, the `stt` function uses the `machine` model.

```tsx
```ts
import { transcribe } from 'orate';
import { rev } from 'orate/rev';

Expand All @@ -43,7 +43,7 @@ const text = await transcribe({

You can specify the model to use by passing it as an argument to the `stt` function. By default, the `stt` function uses the `base` model.

```tsx
```ts
const text = await transcribe({
model: rev.stt('fusion'),
audio: someArrayBuffer,
Expand All @@ -52,7 +52,7 @@ const text = await transcribe({

You can also specify specific Rev AI properties by passing them as an argument to the `stt` function.

```tsx
```ts
const text = await transcribe({
model: rev.stt('fusion', {
remove_disfluencies: true,
Expand Down
Loading

0 comments on commit 15e5d20

Please sign in to comment.