Introducing Slam-1
Learn how to transcribe pre-recorded audio using Slam-1.
Overview
Slam-1 is our new Speech Language Model that combines LLM architecture with ASR encoders for superior speech-to-text transcription. This model delivers unprecedented accuracy through its understanding of context and semantic meaning. Check out our Slam-1 blog post to learn more about this new model!
Quick Start
Slam-1 is available in beta through our standard API endpoint. To use it:
- Make requests to https://api.assemblyai.com/v2/transcript with your API key
- Add the
speech_model
parameter with value “slam-1”
Python
Typescript
Local audio files
The above code example shows how to transcribe a file that is available via URL. If you would like to work with local files, see our API Reference for more information on transcribing local files.
Fine-tuning Slam-1
Improve transcription accuracy by leveraging Slam-1’s contextual understanding capabilities by prompting the model with certain words or phrases that are likely to appear frequently in your audio file.
Rather than simply increasing the likelihood of detecting specific words, Slam-1’s multi-modal architecture actually understands the semantic meaning and context of the terminology you provide, enhancing transcription quality not just of the exact terms you specify, but also related terminology, variations, and contextually similar phrases.
Provide up to 1000 domain-specific words or phrases (maximum 6 words per phrase) that may appear in your audio using the optional keyterms_prompt
parameter:
Python
Typescript
Keyword count limits
While we support up to 1000 key words and phrases, actual capacity may be lower due to internal tokenization and implementation constraints. Key points to remember:
- Each word in a multi-word phrase counts towards the 1000 keyword limit
- Capitalization affects capacity (uppercase tokens consume more than lowercase)
- Longer words consume more capacity than shorter words
For optimal results, use shorter phrases when possible and be mindful of your total token count when approaching the keyword limit.
Here is an example of what a keyterms_prompt
list might look like for a transcription of a professional therapy session for a patient named Jane Doe, who is being treated for anxiety and depression:
Feedback
We welcome your feedback on Slam-1 during this beta period. Share thoughts by emailing our Support team at support@assemblyai.com.