feat(pplx-ext): add TTS download plugin for messages and conversations#153
Open
jords1755 wants to merge 5 commits intopnd280:nxtfrom
Open
feat(pplx-ext): add TTS download plugin for messages and conversations#153jords1755 wants to merge 5 commits intopnd280:nxtfrom
jords1755 wants to merge 5 commits intopnd280:nxtfrom
Conversation
Add a new plugin that allows users to download individual messages or entire conversations as audio files using Perplexity's text-to-speech API. Features: - Download individual messages as WAV audio files - Download entire conversations as a single concatenated audio file - Support for 4 TTS voices: Mike, Alex, Kate, Mary - Progress indicator for multi-message downloads - Integration with message action buttons and navbar Technical implementation: - Uses WebSocket communication with Perplexity's voice_over API - Real-time audio chunk streaming and collection - WAV encoding with proper RIFF headers (48kHz, 16-bit PCM, mono) - File System Access API support for Chrome with fallback - Proper error handling and user cancellation support Changes to download-file utility: - Add support for ArrayBuffer data (required for binary audio) - Add audio/wav MIME type handling - Add optional useFilePicker parameter for explicit control - Improve error handling to propagate cancellation to callers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: jordan.mcnamara7 <jordan.mcnamara7@studytafensw.edu.au>
Co-authored-by: jordan.mcnamara7 <jordan.mcnamara7@studytafensw.edu.au>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new plugin that allows users to download individual messages or entire conversations as audio files using Perplexity's text-to-speech API.
Features:
Technical implementation:
Changes to download-file utility: