Tau: How to specify custom path to startRecorder method

Created on 18 Sep 2019  路  13Comments  路  Source: Canardoux/tau

Version of flutter_sound

^1.4.4

flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[鈭歖 Flutter (Channel stable, v1.9.1+hotfix.2, on Microsoft Windows
[Versione 10.0.18362.356], locale it-IT)

[鈭歖 Android toolchain - develop for Android devices (Android SDK
version 28.0.3)
[!] Android Studio (version 3.4)
X Flutter plugin not installed; this adds Flutter specific
functionality.
X Dart plugin not installed; this adds Dart specific
functionality.
[鈭歖 VS Code (version 1.38.1)
[鈭歖 VS Code, 64-bit edition
[鈭歖 Connected device (1 available)

! Doctor found issues in 1 category.

Hi, I'm trying to specify the path to startRecorder method but it didn't work. If I put "null" as parameter it works. There are any solutions for this? Thanks.

bug

All 13 comments

Please try 1.4.7 which resolves this issue.

I upgraded at version 1.4.7 but it didn't resolve this issue. I tried to specify 'audio.m4a' in startRecord method but the recording didn't begins.

@alby97 Are you sure you are in 1.4.7? I've tested again and it works in example. Please try it too.

This is my code:
_path = await flutterSound.startRecorder('audio.m4a');
print("Ok")

It seems like startRecorder didn't work, like for older version when I try to specify a custom path, in fact it didn't print "Ok".By the other side I didn't modified anything like I see in the example folder. I didn't understand why.

@alby97 Did you try the example project?

I tried now but it didn't start. This is the error:

Launching lib\main.dart on Android SDK built for x86 in debug mode...

  • Error running Gradle:
    ProcessException: Process "C:\Users\alby9\Desktop\EsempiAppFlutter\flutter_soundexample\android\gradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\alby9\Desktop\EsempiAppFlutter\flutter_soundexample\android\app\build.gradle' line: 16

  • What went wrong:
    A problem occurred evaluating project ':app'.

    versionCode not found. Define flutter.versionCode in the local.properties file.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
Command: C:\Users\alby9\Desktop\EsempiAppFlutter\flutter_soundexample\android\gradlew.bat app:properties

Ok~! android didn't have the default dir location provided. I've just put this now in 1.4.8. Please try this.

Sorry but even with 1.4.8 didn't work, it gave me the same error that I posted in my previous answer.

Please see the example project and see how I have specified the path!

I understand but this error keeps showing. I cloned the 1.4.8 version from your repository and triyng to run the example but this is the error when I try to run it.

Launching lib\main.dart on Android SDK built for x86 in debug mode...

  • Error running Gradle:
    ProcessException: Process "C:\Users\alby9\Desktop\EsempiAppFlutter\flutter_soundexampleandroid\gradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\alby9\Desktop\EsempiAppFlutter\flutter_soundexampleandroid\app\build.gradle' line: 16
  • What went wrong:
    A problem occurred evaluating project ':app'.

versionCode not found. Define flutter.versionCode in the local.properties file.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
Command: C:\Users\alby9\Desktop\EsempiAppFlutter\flutter_soundexampleandroid\gradlew.bat app:properties

Ok, now the example run properly and it seems now work properly also in my project with version 1.4.8. Thank you so much for helping me, I appreciate that. Have a good day.

Great to hear that!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farrelanelca picture farrelanelca  路  5Comments

ggirotto picture ggirotto  路  3Comments

deepbluev7 picture deepbluev7  路  5Comments

felixjunghans picture felixjunghans  路  4Comments

java-james picture java-james  路  3Comments