# Fliki

> Generate narration, audio and videos from text with Fliki.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/fliki

## Actions

### Generate a script video

Start a narrated video from a script. Exporting uses Fliki credits.

**Inputs**

- Content (`content`, text, required): Script to narrate.
- Language (`language_id`, text): Language to show voices for.
- Dialect (`dialect_id`, text): Dialect to show voices for.
- Voice (`voice_id`, text, required): Voice to speak the text.
- Aspect ratio (`aspect_ratio`, text): Shape of the video. One of: `16:9`, `9:16`, `1:1`.
- Resolution (`resolution`, text): Video resolution. One of: `1080p`, `720p`, `480p`, `360p`.
- Visuals (`visuals`, text): Source of scene visuals. One of: `stock`, `ai`.
- Brand (`brand_id`, text): Brand kit to apply.
- File name (`file_name`, text): Name displayed in Fliki.
- Should export (`should_export`, true/false): Export the video automatically.

**Outputs**

- `data` (object): The response from Fliki.

**Example output**

```json
{
  "data": {
    "data": {
      "filesCreated": [
        "example"
      ]
    }
  }
}
```

### Generate long audio

Start a long audio job and return its file ID.

**Inputs**

- Content (`content`, text, required): Text to speak.
- Language (`language_id`, text): Language to show voices for.
- Dialect (`dialect_id`, text): Dialect to show voices for.
- Voice (`voice_id`, text, required): Voice to speak the text.
- Voice style (`voice_style_id`, text): Speaking style for the selected voice.
- Format (`format`, text): Audio file format. One of: `mp3`, `wav`.
- Playback rate (`playback_rate`, number): Voice speed multiplier. From 0.5 to 2.

**Outputs**

- `data` (object): The response from Fliki.

**Example output**

```json
{
  "data": {
    "fileId": "example"
  }
}
```

### Generate speech

Turn text into an audio file.

**Inputs**

- Content (`content`, text, required): Text to speak.
- Language (`language_id`, text): Language to show voices for.
- Dialect (`dialect_id`, text): Dialect to show voices for.
- Voice (`voice_id`, text, required): Voice to speak the text.
- Voice style (`voice_style_id`, text): Speaking style for the selected voice.
- Format (`format`, text): Audio file format. One of: `mp3`, `wav`, `ogg`.
- Playback rate (`playback_rate`, number): Voice speed multiplier. From 0.5 to 3.

**Outputs**

- `data` (object): The response from Fliki.

**Example output**

```json
{
  "data": {
    "audio": "example",
    "duration": 1
  }
}
```

### Get generation status

Check progress and get the download URL when the export finishes.

**Inputs**

- File ID (`file_id`, text, required): File ID from the generation step.

**Outputs**

- `data` (object): The response from Fliki.

**Example output**

```json
{
  "data": {
    "download": "example",
    "fileId": "example",
    "progress": 1,
    "status": "example"
  }
}
```

### List brand kits

Find the brand kits available to your account.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Fliki.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "_id": "example",
        "name": "example"
      }
    ]
  }
}
```

### List dialects

Find the names and IDs of supported dialects.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Fliki.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "name": "example",
      "slug": "example"
    }
  ]
}
```

### List languages

Find the names and IDs of supported languages.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Fliki.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "name": "example",
      "slug": "example"
    }
  ]
}
```

### List voices

Find voices and speaking styles for a language and dialect.

**Inputs**

- Language (`language_id`, text, required): Language of the voiceover.
- Dialect (`dialect_id`, text, required): Dialect of the voiceover.

**Outputs**

- `data` (list): The response from Fliki.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "audioSample": "example",
      "gender": "example",
      "name": "example",
      "styles": [
        {
          "_id": "example",
          "audioSample": "example",
          "style": "example"
        }
      ]
    }
  ]
}
```
