# Metavoice V1

> Metavoice V1 API endpoint


## Overview

- **Endpoint**: `https://fal.run/fal-ai/metavoice-v1`
- **Model ID**: `fal-ai/metavoice-v1`
- **Category**: unknown
- **Kind**: inference


## Pricing

- **Price**: $0 per compute seconds

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`text`** (`string`, _required_):
  The text to be synthesized into speech
  - Examples: "However hard he threw himself onto his right, he always rolled back to where he was."

- **`audio_url`** (`string`, _required_):
  Conditioning audio to guide the prosody of the synthesized speech. Must be at least 30 seconds!
  - Examples: "https://cdn.themetavoice.xyz/speakers/bria.mp3", "https://storage.googleapis.com/falserverless/gallery/female_voice.mp3", "https://storage.googleapis.com/falserverless/gallery/male_voice.mp3"

- **`speech_stability`** (`float`, _optional_):
  Improves text following for a challenging speaker Default value: `10`
  - Default: `10`

- **`speaker_similarity`** (`float`, _optional_):
  How closely to match speaker identity and speech style Default value: `4`
  - Default: `4`



**Required Parameters Example**:

```json
{
  "text": "However hard he threw himself onto his right, he always rolled back to where he was.",
  "audio_url": "https://cdn.themetavoice.xyz/speakers/bria.mp3"
}
```

**Full Example**:

```json
{
  "text": "However hard he threw himself onto his right, he always rolled back to where he was.",
  "audio_url": "https://cdn.themetavoice.xyz/speakers/bria.mp3",
  "speech_stability": 10,
  "speaker_similarity": 4
}
```


### Output Schema

The API returns the following output format:

- **`audio_url`** (`File`, _required_):
  The URL to the synthesized speech audio



**Example Response**:

```json
{
  "audio_url": {
    "url": "",
    "content_type": "image/png",
    "file_name": "z9RV14K95DvU.png",
    "file_size": 4404019
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/metavoice-v1 \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "text": "However hard he threw himself onto his right, he always rolled back to where he was.",
     "audio_url": "https://cdn.themetavoice.xyz/speakers/bria.mp3"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/metavoice-v1",
    arguments={
        "text": "However hard he threw himself onto his right, he always rolled back to where he was.",
        "audio_url": "https://cdn.themetavoice.xyz/speakers/bria.mp3"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/metavoice-v1", {
  input: {
    text: "However hard he threw himself onto his right, he always rolled back to where he was.",
    audio_url: "https://cdn.themetavoice.xyz/speakers/bria.mp3"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/metavoice-v1)
- [API Documentation](https://fal.ai/models/fal-ai/metavoice-v1/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/metavoice-v1)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
