Code Monkey home page Code Monkey logo

flutter_audio_recorder2's Introduction

Hi there, I'm Anna ๐Ÿ‘‹

๐ŸŒฑ Iโ€™m currently learning Angular and Flutter

flutter_audio_recorder2's People

Contributors

dfdgsdfg avatar hanyska avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_audio_recorder2's Issues

The plugin `flutter_audio_recorder2` uses a deprecated version of the Android embedding.

Running "flutter pub get" in idea_hunter... 11.6s
The plugin flutter_audio_recorder2 uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

please can anyone help?

Crashing when asking audio permission in iPhone 6s, iPhone 8 plus and iPhone XR

In iPhone 6s, iPhone 8 plus and iPhone XR with iOS 14.8.1 and 15.3.1, app is crashing when click on audio button. At this time it is asking permission. I followed same as documentation and working well in remaining iOS and Android devices. Crashing in specifi devices. Here is the crash log.

Incident Identifier: F071C05E-F3FC-4DE5-8901-1B3D6E7D3CEA
Hardware Model: iPhone10,2
Process: Runner [1527]
Path: /private/var/containers/Bundle/Application/97DA3EBA-C4B5-4CE1-9240-2DE88A83F645/Runner.app/Runner
Identifier: com.myapp.app
Version: 100 (1.0)
AppStoreTools: 13E500
AppVariant: 1:iPhone10,2:14
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.myapp.app [818]

Date/Time: 2022-04-15 13:39:09.4154 +0530
Launch Time: 2022-04-15 13:38:30.5858 +0530
OS Version: iPhone OS 14.8.1 (18H107)
Release Type: User
Baseband Version: 6.71.01
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Last Exception Backtrace:
0 CoreFoundation 0x18ec88928 __exceptionPreprocess + 216 (NSException.m:199)
1 libobjc.A.dylib 0x1a2a27480 objc_exception_throw + 56 (objc-exception.mm:565)
2 CoreFoundation 0x18eb96380 +[NSException raise:format:arguments:] + 96 (NSException.m:146)
3 Foundation 0x18feceef8 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 128 (NSException.m:231)
4 Flutter 0x10463c138 -[FlutterStandardMethodCodec encodeErrorEnvelope:] + 196
5 Flutter 0x1046390d0 __45-[FlutterMethodChannel setMethodCallHandler:]block_invoke_2 + 136
6 flutter_audio_recorder2 0x103bdf3e8 $syXlSgIeyBy_ypSgIegn_TR + 160 (:0)
7 flutter_audio_recorder2 0x103bdf3e8 specialized SwiftFlutterAudioRecorder2Plugin.handle(
:result:) + 7176 (SwiftFlutterAudioRecorder2Plugin.swift:93)
8 flutter_audio_recorder2 0x103bdc400 $s23flutter_audio_recorder232SwiftFlutterAudioRecorder2PluginC6handle_6resultySo0E10MethodCallC_yypSgctF015$syXlSgIeyBy_ypO7Iegn_TRyXlSgIeyBy_Tf1ncn_n + 16 (:0)
9 flutter_audio_recorder2 0x103bdc400 @objc SwiftFlutterAudioRecorder2Plugin.handle(_:result:) + 84
10 Flutter 0x104639038 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 116
11 Flutter 0x10416dd08 flutter::PlatformViewIOS::HandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_deleteflutter::PlatformMessage >) + 516
12 Flutter 0x1044ffcc4 std::__1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnEngineHandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_delete<flutter::PlatformMes... + 92
13 Flutter 0x104427c10 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 1668
14 Flutter 0x10442b1dc fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
15 CoreFoundation 0x18ec087a8 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28 (CFRunLoop.c:1807)
16 CoreFoundation 0x18ec083a8 __CFRunLoopDoTimer + 1016 (CFRunLoop.c:2415)
17 CoreFoundation 0x18ec0787c __CFRunLoopDoTimers + 324 (CFRunLoop.c:2575)
18 CoreFoundation 0x18ec01bb4 __CFRunLoopRun + 1948 (CFRunLoop.c:3090)
19 CoreFoundation 0x18ec00ed0 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3242)
20 GraphicsServices 0x1a534c570 GSEventRunModal + 160 (GSEvent.c:2259)
21 UIKitCore 0x19152e2d0 -[UIApplication _run] + 1052 (UIApplication.m:3269)
22 UIKitCore 0x19153384c UIApplicationMain + 164 (UIApplication.m:4740)
23 Runner 0x1029f4f38 main + 64 (AppDelegate.swift:7)
24 libdyld.dylib 0x18e8df140 start + 4

I am using flutter_audio_recorder2: ^0.0.2 and stable version of flutter (2.10.3).

I was asking NSMicrophoneUsageDescription permission also and added in info.plist file.

Please suggest me on this.

deprecated API

hi in Gradle Release have a API deprecated

/home/mf/snap/flutter/common/flutter/bin/flutter --no-color build apk

๐Ÿ’ช Building with sound null safety ๐Ÿ’ช

Running Gradle task 'assembleRelease'...                        
Note: /home/mf/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_audio_recorder2-0.0.2/android/src/main/java/com/example/flutter_audio_recorder2/FlutterAudioRecorder2Plugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Deprecated version of the Android embedding

The plugin flutter_audio_recorder2 uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.

Wrong .wav header generated in iOS

I'm using this package to record .wav audio files on both Android and iOS. I found that the .wav file generated by iOS app has wrong header block. For example, in the iOS app, I recorded a .wav audio with mono channel and the sampling rate is set to be 44100hz. The 44bytes header block of the file is (I read it using 'rb' in Python)

b'RIFF\xc6m\x01\x00WAVEJUNK\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

However, the correct header block should be

b'RIFF\xd2`\x01\x00WAVEfmt \x10\x00\x00\x00\x01\x00\x01\x00D\xac\x00\x00\x88X\x01\x00\x02\x00\x10\x00data\xae`\x01\x00'

Through your changeLog, I think you have already fixed the problem in Android. Can you kindly fix it in iOS?

No implementation found for method init on channel flutter_audio_recorder2

I got this issue when I tried apply flutter_audio_recorder2 to my flutter app. Is this a bug or not ?
Comment If there any perfect documentation for developers.

E/flutter (20963): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method init on channel flutter_audio_recorder2)
E/flutter (20963): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:165:7)
E/flutter (20963):
E/flutter (20963): #1 FlutterAudioRecorder._init (package:coco_App/common/audio_recorder.dart:68:18)
E/flutter (20963):
E/flutter (20963): #2 _StepTwoEnglishState._initial (package:coco_App/page/english/apata_kiyanna/step_two.dart:301:7)
E/flutter (20963):
E/flutter (20963): #3 _StepTwoEnglishState._recordo (package:coco_App/page/english/apata_kiyanna/step_two.dart:278:7)
E/flutter (20963):

File format bug on Android

When I try to record on iOS everything works as expected and I get .wav file but on Android the recorded file is being saved in .wav.temp format.
My code:

    var recorder = FlutterAudioRecorder2(
          tempDir +
              "/audio_records/" +
              DateTime.now().millisecondsSinceEpoch.toString() +
              ".wav",
          audioFormat: AudioFormat.WAV);
      await recorder.initialized;

      await recorder.start();

The plugin `flutter_audio_recorder2` uses a deprecated version of the Android embedding.

The plugin flutter_audio_recorder2 uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise,
consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.

stop() called on an uninitialized AudioRecord.

On Android version 8 and below, while recording when we invoke audio recorder stop, its displaying this error " stop() called on an uninitialized AudioRecord." after that we are not able to get recording on created path for "flutter_audio_recorder2: ^0.0.2".

Unsupported value for standard codec

On iOS, if you are on a call, FaceTime, Hangouts or similar and try to initialize FlutterAudioRecorder, it crashes with Unsupported value for standard codec.

The reason is in _channel.invokeMethod('init'...). The init method can return FlutterError, but there isn't any handling of it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.