What I Built
RoastMyCode is a fun and educational VSCode extension that transforms code review into an entertaining experience. Built for the Murf Coding Challenge, this extension combines Local Ollama LLM with Murf's text-to-speech API to create a humorous "coding buddy" that provides witty commentary on your code.
The extension addresses a simple but common issue: code review can be boring. Instead of dry, technical feedback, RoastMyCode delivers constructive criticism wrapped in humor, making the learning process more engaging and memorable. It's designed to be a lighthearted tool that helps developers learn while having fun, rather than a serious productivity enhancement.
What it does:
Analyzes your code using AI capabilities
Generates humorous but constructive "roasts" about coding style, logic, and best practices
Converts the text feedback into natural speech using Murf's high-quality TTS API
Delivers the audio directly within VSCode for a seamless experience
The extension serves as an entertaining companion for developers who want to make their coding sessions more enjoyable while still receiving useful feedback about their code quality and style.
Demo
Demo Video :
Code Repository:
https://github.com/Prkhar05/RoastMyCode
How I Used Murf API
The Murf API serves as the voice engine that brings RoastMyCode's personality to life, transforming written roasts into engaging audio experiences.
Integration Approach:
The extension follows a simple two-step process: LLM generates witty text-based feedback about the code, which is then processed through Murf's text-to-speech API to create natural-sounding audio that plays directly in VSCode.
Key Murf API Features Utilized:
High-Quality Voice Synthesis: Leveraging Murf's 99.38% pronunciation accuracy to ensure technical terms and variable names are spoken clearly
Voice Variety: Using Murf's diverse voice options to give users different "personality" choices for their coding buddy
Natural Expression: Taking advantage of Murf's emotion and emphasis capabilities to deliver roasts with appropriate comedic timing
Customization Options: Implementing speed and pitch controls so developers can adjust the narration to their preference
Multilingual Support: Utilizing Murf's language capabilities to support international development teams
Technical Implementation:
The extension makes REST API calls to Murf's service, handling text processing and audio playback within the VSCode environment. When longer code segments exceed character limits, the system intelligently batches the content while maintaining context.
User Experience:
Murf's clear pronunciation of technical terminology ensures that even complex code-related jargon is delivered effectively, making the roasting experience both entertaining and professionally relevant. The API's reliability ensures consistent audio quality across different coding sessions.
Use Case & Impact
Who Would Benefit:
RoastMyCode is designed for developers who want to add a bit of fun to their coding routine while still learning from their code. It's particularly useful for:
Individual Developers: Solo coders who want some entertainment during long coding sessions and appreciate getting feedback in a lighthearted way.
Learning Developers: Junior developers or coding students who might find traditional code review intimidating can benefit from feedback delivered with humor, making criticism less harsh and more memorable.
Development Teams: Teams looking to add some levity to their code review culture, though this is more about team bonding than serious process improvement.
Coding Educators: Instructors who want to make code review more engaging for students, helping them pay attention to feedback that might otherwise be ignored.
Real-World Applications:
The extension serves simple but meaningful purposes:
Making Learning Fun: Turns code feedback into an entertaining experience, which can help developers remember best practices better
Reducing Review Fatigue: Provides an alternative to traditional, sometimes monotonous code review processes
Encouraging Code Review Habits: Makes developers more likely to seek feedback on their code since the process is enjoyable
Supporting Accessibility: Offers audio feedback for developers who prefer auditory learning or need accessibility features
Realistic Impact:
RoastMyCode isn't revolutionary technology - it's a simple tool that makes coding a bit more enjoyable. The real value lies in making code review less intimidating and more approachable, especially for newer developers. While it won't dramatically change development workflows, it can add a small dose of fun to the daily coding routine and potentially help developers be more receptive to constructive feedback when it's delivered with humor rather than stern criticism.
The extension represents a lighthearted approach to developer tools, focusing on making the coding experience more enjoyable rather than claiming to solve major industry problems.
Top comments (0)