Transcribe message
Transcreve o áudio de uma mensagem (messageKey: 'audio' ou 'voice') e
grava o resultado em messageValue.transcription.
Roda de forma síncrona: a resposta já traz a mensagem transcrita. Use o
POST no mesmo path quando a transcrição puder ser processada em segundo
plano — ele devolve 202 e o resultado chega pelo socket.
Se a mensagem já possui messageValue.transcription, o endpoint devolve a
mensagem imediatamente, sem rodar o motor novamente.
O motor é escolhido pela env MESSAGE_TRANSCRIBE_ENGINE (whisper na nossa
infra, ou litellm-audio / litellm-chat via LiteLLM).
Em ambos os casos um evento service:transcribe:processed é emitido no
socket do tenant.
Authorizations
Behalf of an Operator (default). A JWT issued by Talqui Core when an operator signs in, scoped to every tenant that operator belongs to. Send as Authorization: Bearer <jwt-token>.
Path Parameters
The tenant the message belongs to.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$The audio message to transcribe.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Body
ISO-639-1 language hint for the engine (defaults to pt).
2 - 5Response
Response for status 200.
The message with messageValue.transcription filled in.