# Audio processing

Gera áudio TTS e transcreve áudio STT para texto.

## POST /api/v3/stt\_transcribe

> Transcrever áudio (STT)

```json
{"openapi":"3.0.3","info":{"title":"Genier API v3","version":"3.12.0"},"tags":[{"name":"Audio processing","description":"Gera áudio TTS e transcreve áudio STT para texto."}],"servers":[{"url":"https://{host}/{tenant}","description":"Define o host e o tenant usados nas chamadas.","variables":{"host":{"default":"app.genier.ai"},"tenant":{"default":"my-tenant"}}}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"STTTranscribeRequest":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"Arquivo de áudio para transcrição"},"data":{"type":"string","description":"JSON serializado com metadados opcionais (ex.: lang)"}}},"STTTranscribeResponse":{"type":"object","properties":{"source":{"type":"string"},"result":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"}}}}},"paths":{"/api/v3/stt_transcribe":{"post":{"summary":"Transcrever áudio (STT)","tags":["Audio processing"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/STTTranscribeRequest"}}}},"responses":{"200":{"description":"Retorna a transcrição do áudio enviado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/STTTranscribeResponse"}}}},"400":{"description":"Rejeita quando o arquivo de áudio está ausente ou inválido.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Falha de autenticação da chave de API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Falha ao notificar serviços dependentes ou erro interno.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## POST /api/v3/voiceverse

> Pipeline de áudio (transcrição + análise)

```json
{"openapi":"3.0.3","info":{"title":"Genier API v3","version":"3.12.0"},"tags":[{"name":"Audio processing","description":"Gera áudio TTS e transcreve áudio STT para texto."}],"servers":[{"url":"https://{host}/{tenant}","description":"Define o host e o tenant usados nas chamadas.","variables":{"host":{"default":"app.genier.ai"},"tenant":{"default":"my-tenant"}}}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"VoiceverseRequest":{"type":"object","required":["pipeline","file"],"properties":{"pipeline":{"type":"string","description":"ID do pipeline (ex.: call_center)"},"file":{"type":"string","format":"binary","description":"Arquivo de áudio a processar"}}},"VoiceverseResponse":{"type":"object","properties":{"transcribed":{"type":"object","properties":{"response":{"type":"string"}}},"conversation":{"type":"string"},"resume":{"type":"string"},"sentimental":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"}}}}},"paths":{"/api/v3/voiceverse":{"post":{"summary":"Pipeline de áudio (transcrição + análise)","tags":["Audio processing"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/VoiceverseRequest"}}}},"responses":{"200":{"description":"Retorna o resultado do pipeline de áudio executado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceverseResponse"}}}},"400":{"description":"Rejeita quando o pipeline não está configurado ou o arquivo não foi enviado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Falha de autenticação da chave de API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Falha interna ao processar o pipeline ou ao notificar dependências.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## GET /api/v3/voiceverse\_list

> Listar pipelines de áudio

```json
{"openapi":"3.0.3","info":{"title":"Genier API v3","version":"3.12.0"},"tags":[{"name":"Audio processing","description":"Gera áudio TTS e transcreve áudio STT para texto."}],"servers":[{"url":"https://{host}/{tenant}","description":"Define o host e o tenant usados nas chamadas.","variables":{"host":{"default":"app.genier.ai"},"tenant":{"default":"my-tenant"}}}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"VoiceverseListItem":{"type":"object","properties":{"pipeline_name":{"type":"string"},"pipeline_id":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}}}},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"}}}}},"paths":{"/api/v3/voiceverse_list":{"get":{"summary":"Listar pipelines de áudio","tags":["Audio processing"],"responses":{"200":{"description":"Retorna os pipelines de áudio disponíveis para o tenant.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceverseListItem"}}}}},"401":{"description":"Falha de autenticação da chave de API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## GET /api/v3/voiceverse\_content/{pipeline\_id}

> Obter definição completa do pipeline

```json
{"openapi":"3.0.3","info":{"title":"Genier API v3","version":"3.12.0"},"tags":[{"name":"Audio processing","description":"Gera áudio TTS e transcreve áudio STT para texto."}],"servers":[{"url":"https://{host}/{tenant}","description":"Define o host e o tenant usados nas chamadas.","variables":{"host":{"default":"app.genier.ai"},"tenant":{"default":"my-tenant"}}}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"VoiceverseContent":{"type":"object","description":"JSON do pipeline salvo em data/pipelines"},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"}}}}},"paths":{"/api/v3/voiceverse_content/{pipeline_id}":{"get":{"summary":"Obter definição completa do pipeline","tags":["Audio processing"],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string"},"description":"ID do pipeline salvo em data/pipelines (ex.: call_center)"}],"responses":{"200":{"description":"Retorna o JSON completo do pipeline salvo.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceverseContent"}}}},"401":{"description":"Falha de autenticação da chave de API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Não encontra o pipeline informado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Falha interna ao carregar o pipeline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fortics.com.br/ai-api-reference/reference/audio-processing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
