Skip to content

Add Python SDK and JavaScript SDK code examples to Universal 3 Pro page#613

Merged
a-dinoto merged 3 commits intomainfrom
devin/1770223067-add-sdk-examples-universal-3-pro
Feb 5, 2026
Merged

Add Python SDK and JavaScript SDK code examples to Universal 3 Pro page#613
a-dinoto merged 3 commits intomainfrom
devin/1770223067-add-sdk-examples-universal-3-pro

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 4, 2026

Summary

This PR adds Python SDK and JavaScript SDK code examples to all 12 sections with code blocks on the Universal 3 Pro documentation page. Each section now has 4 tabs: Python SDK (default), Python (raw API), JavaScript SDK, and JavaScript (raw API).

The SDK examples use the official AssemblyAI SDKs (assemblyai for Python, assemblyai for JavaScript) which provide a simpler, more idiomatic interface compared to the raw API examples.

Additionally, this PR fixes incorrect audio file URLs in two sections:

  • Numbers and measurements: Changed from verbatim.mp3 to numbers_formatting.mp3
  • Difficult audio handling: Changed from verbatim.mp3 to Difficult_audio.mp3

Updates since last revision

Added syntax highlighting to SDK code examples to match the non-SDK code. For sections with prompt or temperature parameters, the relevant lines are now highlighted (e.g., {11} for single-line parameters, {13-14} for multi-line parameters). This ensures visual consistency between SDK and raw API code blocks.

Review & Testing Checklist for Human

  • Verify line highlighting numbers are correct for each SDK code block (e.g., {11} should highlight the prompt line)
  • Run fern docs dev and verify all tabs render correctly with proper syntax highlighting
  • Confirm the Speaker attribution section correctly shows the utterance iteration pattern for both SDKs
  • Check that the temperature parameter in the Temperature section is correctly passed to the SDK config and highlighted

Recommended test plan: Run the docs locally with fern docs dev and navigate to the Universal 3 Pro page. Click through each tab in every code block section to verify they display correctly, the code examples are syntactically valid, and the highlighted lines match between SDK and non-SDK tabs.

Notes

The CI fern-check and lint failures are pre-existing issues in transcripts.yml (API spec files), not related to documentation changes. The docs check passed: [docs]:✓ All checks passed.

Requested by: adinoto@assemblyai.com

Link to Devin run: https://app.devin.ai/sessions/346def412c0d41c7a4839caa36d5c3f6

Co-Authored-By: adinoto@assemblyai.com <adinoto@assemblyai.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

…code examples

Co-Authored-By: adinoto@assemblyai.com <adinoto@assemblyai.com>
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

@a-dinoto a-dinoto merged commit e451130 into main Feb 5, 2026
2 of 4 checks passed
@a-dinoto a-dinoto deleted the devin/1770223067-add-sdk-examples-universal-3-pro branch February 5, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant