NAME
Langertha::Role::Transcription - Role for APIs with transcription functionality
VERSION
version 0.202
transcription_model
The model name to use for transcription requests. Lazily defaults to default_transcription_model if the engine provides it, otherwise falls back to the general model attribute from Langertha::Role::Models.
transcription
my $request = $engine->transcription($file_or_content, %extra);
Builds and returns a transcription HTTP request object for the given audio file path or content. Use "simple_transcription" to execute the request and get the transcript directly.
simple_transcription
my $text = $engine->simple_transcription($file_or_content, %extra);
my $text = $engine->simple_transcription('/path/to/audio.mp3');
my $text = $engine->simple_transcription($audio_bytes, language => 'en');
Sends a transcription request for the audio file or content and returns the transcript text. Blocks until the request completes. Additional options such as language can be passed as %extra key/value pairs.
SEE ALSO
Langertha::Role::HTTP - HTTP transport layer
Langertha::Role::Models - Model selection (provides
transcription_model)Langertha::Engine::Whisper - Whisper-compatible transcription server
Langertha::Engine::Groq - Groq's hosted Whisper transcription
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudss.us/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.