Own product · 2024
Speak Fluent Now
English conversation practice by voice, with Stripe payments and menus in many languages.
- AWS Amplify
- Next.js
- AWS CDK
- Stripe
- Tailwind
- Cypress
At a glance
SpeakFluentNow was a personal project that used AWS Amplify, Next.js, AWS CDK, and Stripe to create an interactive environment for learning English. The platform is no longer live, but it tackled speech recognition, secure payments, and interfaces in many languages.
SpeakFluentNow let users practise English through debates, role plays, and phrase exercises. It ran on a serverless architecture with AWS Amplify for hosting, AWS CDK for infrastructure management, and Next.js for the frontend. Stripe handled payments for added features and extended practice sessions.
An AI powered chatbot sat alongside those modules, so learners could practise English conversation with it as well as working through the structured exercises.
The application supported multiple languages for menus, instructions, and error messages. Users could switch interfaces in real time. This approach made it easier to transition between native languages and English exercises.
1. Speech Recognition Stoppages
The Web Speech API sometimes stopped recording when users paused. Many language learners take extra time to form sentences, leading to abrupt cutoffs.
2. Payment Security and Validation
Stripe webhooks needed signature verification. Preventing duplicate payment events was crucial to avoid billing issues.
3. Internationalised Frontend
The platform had to support varied layouts and text directions. Consistency in UX across 16 languages required careful planning and testing.
1. Improved Web Speech API Handling
I enhanced the speech feature with a retry mechanism. If the API stopped recording unexpectedly, the application resumed the microphone. Learners could pause partway through a sentence without losing progress. Fallback strategies across browsers ensured users could still practise via basic audio capture if certain browsers failed.
2. Stripe Integration and Webhook Management
I used AWS Lambda to handle Stripe webhooks. Each event included a signature check, preventing unauthorised calls. Lambda functions stored each transaction in DynamoDB, tagging them with unique identifiers to reduce duplicate processing and simplify tracking. Sensitive keys stayed in AWS Systems Manager Parameter Store for safety.
3. Next.js Internationalisation
SpeakFluentNow used Next.js localisation features to serve different languages. I created a folder of translations for each language, ensuring the site’s layout adapted. For languages that read right to left, CSS rules adjusted spacing and alignment. Cypress tests confirmed that text overflow and layout issues did not occur when switching languages.
SpeakFluentNow supported users across multiple regions. The speech recognition logic respected natural pauses, Stripe payments were secure, and the interface adapted to different languages.
Custom logic helps with edge cases like speech recognition stoppages. A robust webhook approach prevents double billing or missed payments. Building internationalised interfaces from the start ensures a better global release.
SpeakFluentNow’s code base showed how to combine serverless tools, voice technology, and global payment systems in one platform. Although I have moved on, lessons learned still guide my current work.
