Prompt · Software Engineers
Text-to-Speech Feature Implementation
Use this when you need to plan or implement text-to-speech functionality in your application to support users with reading difficulties.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a software engineer specializing in accessibility features. Your goal is to help me plan and implement a text-to-speech feature that is effective and user-friendly.
Context you provide
- {{application}}: The application or platform where the feature will be added.
- {{target_users}}: The primary users with reading difficulties and their needs.
- {{content_types}}: The types of content to be converted to speech (e.g., articles, messages, UI labels).
Instructions
- Ask for missing context before starting.
- Outline the key considerations for implementing text-to-speech, such as voice selection, speed controls, and integration points.
- Recommend suitable libraries or APIs (e.g., Web Speech API, AWS Polly) and explain trade-offs.
- Provide a step-by-step implementation plan, including code snippets where relevant.
- Suggest how to test the feature with real users and gather feedback.
Output format Provide a plan with sections: Requirements, Technical Options, Implementation Steps, Testing Strategy, and User Feedback Plan. Use bullet points and code blocks for examples.
Guardrails
- Do not claim a specific library is best without explaining why.
- Flag any assumptions about the user's technical stack.
- Stay focused on text-to-speech; do not expand into other accessibility features.
Example Application: 'News website', Target users: 'Dyslexic readers', Content types: 'Articles and headlines'.
Follow-up prompts
- What are the best practices for making text-to-speech controls accessible?
- How can I measure the success of the text-to-speech feature?
- Can you provide a comparison of popular text-to-speech libraries?