Skip to content

I can’t play it after recording, how can I solve it? #2889

Answered by jkloip
jkloip asked this question in Q&A
Discussion options

You must be logged in to vote

I have solved this problem. The solution process is briefly explained as follows:
First I updated flet to 0.21.2, then I made some changes to the program code. I removed await page.update_async() in audio1, and then used flet build apk --include-packages flet_audio_recorder flet_audio to package the program. . After this process, you can record and play the recording files on your Android phone
The entire program code is as follows:
import flet as ft
async def main(page: ft.Page):
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
page.appbar = ft.AppBar(title=ft.Text("Audio Recorder"), center_title=True)

path = "test-audio-file.wav"
url_1="MetroSVT.mp3"

async def handle_start_reco…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jkloip
Comment options

@jkloip
Comment options

@jkloip
Comment options

@jkloip
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ndonkoHenri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants