<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Miyuru bashitha on Medium]]></title>
        <description><![CDATA[Stories by Miyuru bashitha on Medium]]></description>
        <link>https://medium.com/@miyurubashitha100?source=rss-66dd73113ced------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ybz7FWVHWX4d3eES</url>
            <title>Stories by Miyuru bashitha on Medium</title>
            <link>https://medium.com/@miyurubashitha100?source=rss-66dd73113ced------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:01:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@miyurubashitha100/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting Started with Audio Recording in Flutter]]></title>
            <link>https://medium.com/@miyurubashitha100/getting-started-with-audio-recording-in-flutter-ba1051e071f2?source=rss-66dd73113ced------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba1051e071f2</guid>
            <dc:creator><![CDATA[Miyuru bashitha]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 16:21:29 GMT</pubDate>
            <atom:updated>2025-03-20T16:25:51.726Z</atom:updated>
            <content:encoded><![CDATA[<p>As an undergraduate Computer Science student at <strong>IIT</strong>, I’m currently working on our <strong>Software Development Group Project (SDGP)</strong> — a challenge that pushes us to <strong>think creatively</strong>, apply our <strong>technical skills</strong>, and <strong>collaborate</strong> to bring an innovative idea to life.</p><p>For our project, my team and I are building <strong>SPELLO</strong>, a <strong>gamified speech therapy app</strong> designed to help children with speech disorders. My responsibility? Developing an <strong>interactive game</strong> for kids aged <strong>5–10</strong>, ensuring they have <strong>fun while improving their speech</strong>.</p><p>During this journey, I explored several <strong>Dart packages</strong> to enhance our app, and in this article, I’ll walk you through how I integrated <strong>audio recording</strong> using Flutter’s <strong>Audio Recorder</strong> package.</p><h3>Introduction to Pub.dev</h3><p>If you’re a Flutter developer, you’ve probably used <strong>Pub.dev</strong> — the official package repository for Dart and Flutter. Think of it like <strong>npm for JavaScript</strong> or <strong>Maven for Java</strong> — a hub where you can find and integrate useful libraries into your projects.</p><p>Pub.dev provides:<br> + Installation steps<br> + API references<br> + Versioning &amp; dependencies<br> + Example usage</p><p>For our <strong>SPELLO</strong> app, I used the following <strong>Flutter packages</strong> to implement the audio recording feature:<br> *record 5.2.1 — For capturing audio<br> *path_provider 2.1.5 — For storing and managing file paths<br> *audioplayers 6.4.0 — For playing recorded audio</p><h3>Step 1: Installing Dependencies</h3><p>First, we need to install the required packages. The easiest way is through the <strong>command line</strong>:</p><pre>flutter pub add package_name</pre><p>This automatically fetches the <strong>latest</strong> package version without manual updates.</p><p>Alternatively, you can manually add dependencies to your <strong>pubspec.yaml</strong>, but I highly recommend the <strong>command line method</strong> for efficiency.</p><h3>Step 2: Updating minSdk and NDK Versions</h3><p>One of the most common Flutter build issues? <strong>SDK version conflicts!</strong> Some packages require a higher minimum SDK or a specific <strong>NDK version</strong>.</p><p>For my setup, these were the required versions:<br> + <strong>NDK Version</strong> → 27.0.12077973<br> + <strong>Minimum SDK Version</strong> → 23</p><h3>Updating NDK Version</h3><p>1 Open <strong>android/build.gradle.kts</strong><br> 2 Find the <strong>android {}</strong> block<br> 3 Modify the <strong>ndkVersion</strong> line as follows:</p><pre>android {<br>    namespace = &quot;com.example.flutter_audiotest&quot;<br>    compileSdk = flutter.compileSdkVersion<br>    ndkVersion = &quot;27.0.12077973&quot;  // Updated NDK version<br>}</pre><h3>Updating minSdk Version</h3><p>1 Open <strong>android/build.gradle.kts</strong><br> 2 Locate the <strong>defaultConfig {}</strong> block<br> 3 Update the <strong>minSdk</strong> value:</p><pre>defaultConfig {<br>    applicationId = &quot;com.example.flutter_audiotest&quot;<br>    minSdk = 23  // Updated minSdk version<br>}</pre><p>These changes ensure <strong>compatibility</strong> with the required Flutter packages and prevent build errors.</p><h3>Step 3: Updating AndroidManifest.xml</h3><p>To enable <strong>audio recording</strong>, we must add the necessary <strong>permissions</strong> to the <strong>AndroidManifest.xml</strong> file.</p><h3>Steps to Update:</h3><p>1 Navigate to <strong>android/app/src/main/AndroidManifest.xml</strong><br> 2 Open the file — you’ll see this line first:</p><pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;</pre><p>3 Immediately after that, add these <strong>permissions</strong>:</p><pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;</pre><pre>    &lt;!-- Permissions for recording and managing audio --&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.MODIFY_AUDIO_SETTINGS&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; /&gt;</pre><pre>&lt;/manifest&gt;</pre><h3>Why Do We Need These Permissions?</h3><p>+ <strong>RECORD_AUDIO</strong> → Captures audio using the device’s microphone.<br> + <strong>MODIFY_AUDIO_SETTINGS</strong> → Grants control over audio settings.<br> + <strong>WRITE_EXTERNAL_STORAGE</strong> → Saves recorded audio files on the device.</p><p>These permissions are <strong>essential</strong> for smooth audio recording and playback.</p><h3>Wrapping Up</h3><p>And that’s it! You now have <strong>audio recording</strong> integrated into your Flutter app.</p><p>Working on <strong>SPELLO</strong> has been a <strong>game-changer</strong> for me — combining <strong>technology and accessibility</strong> to make a real difference.</p><p>In my next article, I’ll dive into <strong>other Dart packages</strong> we used to build our gamified speech therapy app — stay tuned!</p><h3>Let’s Connect!</h3><p>If you found this helpful, drop a <strong>comment</strong> or share your thoughts!</p><p>+<strong>GitHub:</strong> <a href="https://github.com/miyuru404">github.com/miyuru404</a><br> +<strong>LinkedIn:</strong> <a href="https://linkedin.com/in/miyuru-bashitha-51944b2b3">linkedin.com/in/miyuru-bashitha-51944b2b3</a><br> +<strong>Project Link:</strong> <a href="https://github.com/miyuru404/flutter-audiorecorder-sample-project">Flutter Audio Recorder Sample</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba1051e071f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>