Repository navigation
Add ai-voice-studio extension - #28224
Conversation
- feat: OpenAI TTS Studio, menu bar status, expanded format support, and promoted style controls - refactor: unify all provider reading loops behind one engine (#4 Stage 4) - fix: full Quick Read feedback parity (H1) + crash-safe toggle (M3) - fix: harden MiniMax Quick Read / read-with-voice + unify duplicated provider code - feat: pin OpenAI to gpt-4o-mini-tts with steerable narration controls - fix: remove legacy provider preference reads - fix: make MiniMax voices searchable by language - feat: prioritize MiniMax language voice groups - docs: add bilingual README - docs: rewrite README
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
Greptile SummaryThis PR adds the AI Voice Studio extension, providing Raycast commands for TTS synthesis via Qwen-TTS (Alibaba Cloud DashScope), MiMo (Xiaomi), and OpenAI. The implementation spans 20 commands covering quick-read, voice pickers, setup, speed controls, and menu-bar status items.
Confidence Score: 4/5Safe to merge once the items flagged in open review threads (CHANGELOG date placeholder and ESLint config) are addressed. The three-provider implementation (Qwen-TTS, MiMo, OpenAI) is internally consistent — commands, preferences, and source code all agree. The pipelined playback engine, cross-command stop mechanism, and realtime WebSocket path with HTTP fallback are well thought-out. The open threads about the CHANGELOG date placeholder and ESLint flat config format remain unresolved in the current HEAD. CHANGELOG.md and eslint.config.js still have the issues called out in the previous review threads. Important Files Changed
Reviews (32): Last reviewed commit: "Update CHANGELOG.md and optimise images" | Re-trigger Greptile |
- refactor: simplify realtime ws types and add http fallback - feat: stream qwen-tts quick read via realtime websocket
- fix: address greptile review suggestions - fix: align qwen realtime auth with docs
Greptile noted inconsistency: the rest of audio-player.ts uses execFileSync or spawn with argument arrays, but the ps PID check used execSync with a template-literal string. No actual injection risk (pid is always an integer), but the array-args form matches the file's style and is easier to audit. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Greptile flagged two items, both legitimate: 1. The audit/ directory (10 files, ~14k lines including a copy of Raycast's LLM docs and provider research notes) was development scaffolding, not part of the shipped extension. Removed entirely from the PR. 2. qwen-text-source.ts re-exported from openai-text-source.ts, creating an unintended cross-provider coupling — any future OpenAI-specific change to that module would silently leak into the Qwen commands. Re-routed to re-export from mimo-text-source.ts instead, with a comment pointing at a future provider-neutral consolidation if a fourth provider lands. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
When the user clicks Stop Reading (or fires the stop-reading command) while the Qwen-TTS realtime WebSocket is mid-session, player.stopPlayback() aborts the abort signal, which propagates as TTSApiError(-7) "TTS synthesis cancelled" through streamRealtimeSpeech -> runRealtimePath -> the outer catch in playWithSettings, producing a "Qwen-TTS Error" toast and an error state in the menu-bar status even though the stop was intentional. The HTTP chunked path avoids this because playChunksWithLookahead resolves with kind:"stopped" outcomes, so the outer success branch (which already checks player.isStopped()) handles it correctly. Apply the same isStopped guard in the catch block so a cancelled realtime session shows the same "Stopped" toast and HUD as the HTTP path. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Greptile noted that stopExternalPlayback calls unconditional removePidFile() right after killing the recorded pid. If a new Quick Read starts in the brief window between the SIGTERM and the file removal and writes its own pid, the unconditional removal deletes the new session's pid — leaving that session unstoppable through Stop Reading until the process exits on its own. removePidFileIfMatch(pid) was added exactly for this race, and pid is already captured. Switch the post-kill cleanup to use it; the file is only removed if it still names the pid we just signalled. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…r, drop dead voiceConfig guard Three issues across the extension: 1. tts-studio.tsx and openai-tts-studio.tsx used isLoading both for the spinner and to gate the Stop Playback action. onFirstAudioReady sets isLoading=false once the first chunk plays, which removed Stop from the panel for the rest of a multi-chunk reading. Add an independent isPlaying state that is true from submission to the finally block, and gate Stop on that. Greptile flagged the same bug in mimo-tts — the OpenAI variant has it too because the playback shape is the same. 2. mimo-status.tsx, qwen-status.tsx, openai-status.tsx (menu bars) all loaded state via Promise.all without a .catch(). A single transient LocalStorage / preferences rejection left state=undefined and isLoading=true until the next refresh tick — which would just throw again. Coerce to state=null on rejection so the menu bar falls back to the idle UI. 3. qwen-tts.ts had `if (voiceConfig && !isVoiceAvailableForModel(...))` where voiceConfig was guaranteed non-null by the preceding `if (!voiceConfig) throw`. Dropped the redundant guard to make the control flow obvious. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Greptile's round-N feedback: qwen-text-source re-exports from mimo-text-source, which inverts the previous round's coupling (qwen->openai) without removing it. Since the three providers are distinct and could legitimately diverge (e.g., per-provider Chinese normalisation or chunking rules), extract the canonical implementation into shared-text-source.ts. mimo/qwen/openai now each re-export from the shared module; any future per-provider tweak is a deliberate edit in that one file rather than a silent inherit through a sibling. Behaviour is identical — the three previous modules already had the same implementation (modulo a docstring in mimo's version, preserved on resolveReadingText in shared-text-source). Verified via ray lint and ray build. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Mirror of the same fix applied to the MiMo TTS extension. The PCM path's afplay process had asymmetric close/error handlers — close reset currentPid and called removePidFileIfMatch, error did neither. After an afplay error in the PCM path, a Stop Reading from another command would find the dead pid via ps, fail the afplay-comm check, silently delete the PID file, and report "Nothing was playing" even though playback just errored a moment earlier. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Merge branch \'contributions/merge-1780115265892\' - Pull contributions - feat(qwen-read-with-voice): add in-command model switcher and hidden-pick hint - feat: add MiniMax TTS provider - feat: pin curated "My Picks" voice group to Qwen Read with Voice
|
Follow-up update for MiMo voice defaults:
Validation: |
|
Addressed the MiniMax realtime stop feedback note: user-initiated stops now mirror the Qwen success path instead of showing a TTS failure toast. Updated Store branch commit: 816c801. Validation: npm run verify. |
|
Follow-up addressed in
Validation: |
- Merge branch \'contributions/merge-1780332200424\' into codex/store-review-nits - Pull contributions - Remove internal audit artifacts - fix: normalize MiniMax API key preference - fix: treat MiniMax realtime stop as success
- Remove the `prebuild` script and the `clean-build-output.mjs` helper. - Update the `build` script to use the default `ray build` command. - Delete the metadata README and associated screenshot PNG files. - Fix the README table header formatting for consistency.
- Replace redundant import statements with concise ones - Modularize pipeline playback and quick read logic - Centralize playback state handling across providers - Consolidate voice preferences management into unified functions
|
Dependency limit exceeded — report not shown. This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report. Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard. Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account. |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
* Add ai-voice-studio extension - feat: OpenAI TTS Studio, menu bar status, expanded format support, and promoted style controls - refactor: unify all provider reading loops behind one engine (raycast#4 Stage 4) - fix: full Quick Read feedback parity (H1) + crash-safe toggle (M3) - fix: harden MiniMax Quick Read / read-with-voice + unify duplicated provider code - feat: pin OpenAI to gpt-4o-mini-tts with steerable narration controls - fix: remove legacy provider preference reads - fix: make MiniMax voices searchable by language - feat: prioritize MiniMax language voice groups - docs: add bilingual README - docs: rewrite README * docs: add store screenshots for all three TTS providers * feat: migrate voice studio to qwen tts * fix: remove retired provider remnants and harden playback * fix: address qwen voice guard review * fix: resolve prefetch options per chunk * fix: align qwen tts settings with dashscope docs * fix: wrap raycast eslint flat config * feat: deepen qwen tts capabilities * feat: stream qwen-tts quick read via realtime websocket * feat: stream qwen-tts quick read via realtime websocket * Update ai-voice-studio extension - refactor: simplify realtime ws types and add http fallback - feat: stream qwen-tts quick read via realtime websocket * Update ai-voice-studio extension - fix: address greptile review suggestions - fix: align qwen realtime auth with docs * fix: use execFileSync for PID validation in stopExternalPlayback Greptile noted inconsistency: the rest of audio-player.ts uses execFileSync or spawn with argument arrays, but the ps PID check used execSync with a template-literal string. No actual injection risk (pid is always an integer), but the array-args form matches the file's style and is easier to audit. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * chore: remove audit artifacts and re-route qwen-text-source Greptile flagged two items, both legitimate: 1. The audit/ directory (10 files, ~14k lines including a copy of Raycast's LLM docs and provider research notes) was development scaffolding, not part of the shipped extension. Removed entirely from the PR. 2. qwen-text-source.ts re-exported from openai-text-source.ts, creating an unintended cross-provider coupling — any future OpenAI-specific change to that module would silently leak into the Qwen commands. Re-routed to re-export from mimo-text-source.ts instead, with a comment pointing at a future provider-neutral consolidation if a fourth provider lands. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix: treat user-initiated stop as success in qwen realtime path When the user clicks Stop Reading (or fires the stop-reading command) while the Qwen-TTS realtime WebSocket is mid-session, player.stopPlayback() aborts the abort signal, which propagates as TTSApiError(-7) "TTS synthesis cancelled" through streamRealtimeSpeech -> runRealtimePath -> the outer catch in playWithSettings, producing a "Qwen-TTS Error" toast and an error state in the menu-bar status even though the stop was intentional. The HTTP chunked path avoids this because playChunksWithLookahead resolves with kind:"stopped" outcomes, so the outer success branch (which already checks player.isStopped()) handles it correctly. Apply the same isStopped guard in the catch block so a cancelled realtime session shows the same "Stopped" toast and HUD as the HTTP path. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix: avoid clobbering a concurrent Quick Read's pid file on stop Greptile noted that stopExternalPlayback calls unconditional removePidFile() right after killing the recorded pid. If a new Quick Read starts in the brief window between the SIGTERM and the file removal and writes its own pid, the unconditional removal deletes the new session's pid — leaving that session unstoppable through Stop Reading until the process exits on its own. removePidFileIfMatch(pid) was added exactly for this race, and pid is already captured. Switch the post-kill cleanup to use it; the file is only removed if it still names the pid we just signalled. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix: keep Stop available mid-playback, recover menu bars on load error, drop dead voiceConfig guard Three issues across the extension: 1. tts-studio.tsx and openai-tts-studio.tsx used isLoading both for the spinner and to gate the Stop Playback action. onFirstAudioReady sets isLoading=false once the first chunk plays, which removed Stop from the panel for the rest of a multi-chunk reading. Add an independent isPlaying state that is true from submission to the finally block, and gate Stop on that. Greptile flagged the same bug in mimo-tts — the OpenAI variant has it too because the playback shape is the same. 2. mimo-status.tsx, qwen-status.tsx, openai-status.tsx (menu bars) all loaded state via Promise.all without a .catch(). A single transient LocalStorage / preferences rejection left state=undefined and isLoading=true until the next refresh tick — which would just throw again. Coerce to state=null on rejection so the menu bar falls back to the idle UI. 3. qwen-tts.ts had `if (voiceConfig && !isVoiceAvailableForModel(...))` where voiceConfig was guaranteed non-null by the preceding `if (!voiceConfig) throw`. Dropped the redundant guard to make the control flow obvious. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * refactor: extract shared text-source into a provider-neutral module Greptile's round-N feedback: qwen-text-source re-exports from mimo-text-source, which inverts the previous round's coupling (qwen->openai) without removing it. Since the three providers are distinct and could legitimately diverge (e.g., per-provider Chinese normalisation or chunking rules), extract the canonical implementation into shared-text-source.ts. mimo/qwen/openai now each re-export from the shared module; any future per-provider tweak is a deliberate edit in that one file rather than a silent inherit through a sibling. Behaviour is identical — the three previous modules already had the same implementation (modulo a docstring in mimo's version, preserved on resolveReadingText in shared-text-source). Verified via ray lint and ray build. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix: reset currentPid and pid file when PCM playback errors Mirror of the same fix applied to the MiMo TTS extension. The PCM path's afplay process had asymmetric close/error handlers — close reset currentPid and called removePidFileIfMatch, error did neither. After an afplay error in the PCM path, a Stop Reading from another command would find the dead pid via ps, fail the afplay-comm check, silently delete the PID file, and report "Nothing was playing" even though playback just errored a moment earlier. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * Update ai-voice-studio extension - Merge branch \'contributions/merge-1780115265892\' - Pull contributions - feat(qwen-read-with-voice): add in-command model switcher and hidden-pick hint - feat: add MiniMax TTS provider - feat: pin curated "My Picks" voice group to Qwen Read with Voice * chore(ai-voice-studio): remove audit artifacts * fix(ai-voice-studio): treat minimax stop as success * fix(ai-voice-studio): clarify minimax key placeholder * fix(ai-voice-studio): sync minimax quick read fixes * Use explicit MiMo English voice defaults * Document MiMo default voice caveat * fix: treat MiniMax realtime stop as success * fix(ai-voice-studio): normalize MiniMax API key preference * Update ai-voice-studio extension - Merge branch \'contributions/merge-1780332200424\' into codex/store-review-nits - Pull contributions - Remove internal audit artifacts - fix: normalize MiniMax API key preference - fix: treat MiniMax realtime stop as success * Remove MiniMax voice studio surface * refactor(ui): label the Qwen DashScope key as "Qwen DashScope" * fix(metadata): frame MiMo settings screenshot * chore(ai-voice-studio): simplify build script, drop unused metadata - Remove the `prebuild` script and the `clean-build-output.mjs` helper. - Update the `build` script to use the default `ray build` command. - Delete the metadata README and associated screenshot PNG files. - Fix the README table header formatting for consistency. * refactor(voice-studio): streamline code with utility functions - Replace redundant import statements with concise ones - Modularize pipeline playback and quick read logic - Centralize playback state handling across providers - Consolidate voice preferences management into unified functions * Update CHANGELOG.md and optimise images --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> Co-authored-by: Semantic Craft <[email protected]> Co-authored-by: Dhruv Suthar <[email protected]> Co-authored-by: raycastbot <[email protected]>
Description
AI Voice Studio is a Raycast extension for reading text aloud with four active TTS providers: Qwen-TTS via Alibaba Cloud DashScope, Xiaomi MiMo, MiniMax, and OpenAI.
Key Features
Commands (24 total)
API Keys Required
Users need at least one API key in Extension Preferences:
Screenshots
OpenAI — GPT-4o Mini TTS with recommended voices
MiMo — Expressive Chinese and English voices with detail panel
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder