4

I'm getting List<int> as RAW data from recorder plugin for Android and iOS, I want to display Actual text from the bytes, The data is stream of system mic.

Any way to get text from bytes?

Raw data detail:

SampleRate: 44100, ChannelConfig: MONO-16, AudioSource: SYSTEM-MIC

Note: I'm already using SpeechToText plugin and aware about it, But I fill that at some-point which is dropping words hence I want to try something else.

Any help will be appreciated.

1 Answer 1

0
import 'package:mime/mime.dart';

String? lookupMimeType(String path, {List<int>? headerBytes}) You can use ı think.

var mimeString = lookupMimeType();İf you fill the parameter it works. You can use directly your audio file's path.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.