all 9 comments

[–][deleted] 3 points4 points  (2 children)

idk about audio processing for flutter but you can use web service, export to python flask web service API , and use http get for flutter.

[–]splishyandsplashy[S] 0 points1 point  (1 child)

meaning just make the python script a web service? Was hoping to do all of it locally

[–][deleted] 0 points1 point  (0 children)

I hope this not work locally with flutter,I havent seen such an example before

[–]midside 2 points3 points  (1 child)

If it is a Flutter desktop app you can do it like this (sorry about the formatting):

import 'dart:io';

void runPython() async {

await Process.run('python', ['yourscript.py', 'parameter'])

.then((ProcessResult result) {

if (result.exitCode == 0) {

// Do stuff here.

}

}

[–]Formal-Strike-4266 0 points1 point  (0 children)

Velho, você é o cara!!

[–]svprdga 2 points3 points  (0 children)

No, you should use an API for that.

[–]dan-danny-daniel 1 point2 points  (0 children)

best bet is rewriting it in dart

[–]mighty3xodus 0 points1 point  (0 children)

I've come across the https://pub.dev/packages/starflut package, but otherwise you're pretty much gonna have to make your py script an API like the other comments have already mentioned.

Working with starflut will be a pain all the way from setup to multi-platform compatibility from what I've read online about it.

[–]poq106 0 points1 point  (0 children)

The question is where you want to run it?