flet-audio-recorder 0.2.0.dev17__py3-none-any.whl → 0.2.0.dev50__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of flet-audio-recorder might be problematic. Click here for more details.
- flet_audio_recorder/__init__.py +8 -2
- flet_audio_recorder/audio_recorder.py +212 -277
- flet_audio_recorder/types.py +336 -0
- flet_audio_recorder-0.2.0.dev50.dist-info/METADATA +69 -0
- flet_audio_recorder-0.2.0.dev50.dist-info/RECORD +18 -0
- {flet_audio_recorder-0.2.0.dev17.dist-info → flet_audio_recorder-0.2.0.dev50.dist-info}/WHEEL +1 -1
- flet_audio_recorder-0.2.0.dev50.dist-info/licenses/LICENSE +201 -0
- flutter/flet_audio_recorder/lib/flet_audio_recorder.dart +1 -1
- flutter/flet_audio_recorder/lib/src/audio_recorder.dart +67 -141
- flutter/flet_audio_recorder/lib/src/extension.dart +15 -0
- flutter/flet_audio_recorder/lib/src/utils/audio_recorder.dart +70 -23
- flutter/flet_audio_recorder/pubspec.lock +141 -84
- flutter/flet_audio_recorder/pubspec.yaml +7 -2
- flet_audio_recorder-0.2.0.dev17.dist-info/METADATA +0 -93
- flet_audio_recorder-0.2.0.dev17.dist-info/RECORD +0 -16
- flutter/flet_audio_recorder/lib/src/create_control.dart +0 -17
- {flet_audio_recorder-0.2.0.dev17.dist-info → flet_audio_recorder-0.2.0.dev50.dist-info}/top_level.txt +0 -0
|
@@ -5,10 +5,10 @@ packages:
|
|
|
5
5
|
dependency: transitive
|
|
6
6
|
description:
|
|
7
7
|
name: args
|
|
8
|
-
sha256:
|
|
8
|
+
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
|
|
9
9
|
url: "https://pub.dev"
|
|
10
10
|
source: hosted
|
|
11
|
-
version: "2.
|
|
11
|
+
version: "2.7.0"
|
|
12
12
|
async:
|
|
13
13
|
dependency: transitive
|
|
14
14
|
description:
|
|
@@ -65,6 +65,22 @@ packages:
|
|
|
65
65
|
url: "https://pub.dev"
|
|
66
66
|
source: hosted
|
|
67
67
|
version: "3.0.6"
|
|
68
|
+
device_info_plus:
|
|
69
|
+
dependency: transitive
|
|
70
|
+
description:
|
|
71
|
+
name: device_info_plus
|
|
72
|
+
sha256: "98f28b42168cc509abc92f88518882fd58061ea372d7999aecc424345c7bff6a"
|
|
73
|
+
url: "https://pub.dev"
|
|
74
|
+
source: hosted
|
|
75
|
+
version: "11.5.0"
|
|
76
|
+
device_info_plus_platform_interface:
|
|
77
|
+
dependency: transitive
|
|
78
|
+
description:
|
|
79
|
+
name: device_info_plus_platform_interface
|
|
80
|
+
sha256: e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f
|
|
81
|
+
url: "https://pub.dev"
|
|
82
|
+
source: hosted
|
|
83
|
+
version: "7.0.3"
|
|
68
84
|
equatable:
|
|
69
85
|
dependency: transitive
|
|
70
86
|
description:
|
|
@@ -101,10 +117,10 @@ packages:
|
|
|
101
117
|
dependency: transitive
|
|
102
118
|
description:
|
|
103
119
|
name: file_picker
|
|
104
|
-
sha256:
|
|
120
|
+
sha256: ef9908739bdd9c476353d6adff72e88fd00c625f5b959ae23f7567bd5137db0a
|
|
105
121
|
url: "https://pub.dev"
|
|
106
122
|
source: hosted
|
|
107
|
-
version: "
|
|
123
|
+
version: "10.2.0"
|
|
108
124
|
fixnum:
|
|
109
125
|
dependency: transitive
|
|
110
126
|
description:
|
|
@@ -113,22 +129,15 @@ packages:
|
|
|
113
129
|
url: "https://pub.dev"
|
|
114
130
|
source: hosted
|
|
115
131
|
version: "1.1.1"
|
|
116
|
-
fl_chart:
|
|
117
|
-
dependency: transitive
|
|
118
|
-
description:
|
|
119
|
-
name: fl_chart
|
|
120
|
-
sha256: "74959b99b92b9eebeed1a4049426fd67c4abc3c5a0f4d12e2877097d6a11ae08"
|
|
121
|
-
url: "https://pub.dev"
|
|
122
|
-
source: hosted
|
|
123
|
-
version: "0.69.2"
|
|
124
132
|
flet:
|
|
125
133
|
dependency: "direct main"
|
|
126
134
|
description:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
path: "packages/flet"
|
|
136
|
+
ref: v1
|
|
137
|
+
resolved-ref: f76d1c5dd805ec81a5a5d63300d61413a5bf27ae
|
|
138
|
+
url: "https://github.com/flet-dev/flet.git"
|
|
139
|
+
source: git
|
|
140
|
+
version: "0.70.0"
|
|
132
141
|
flutter:
|
|
133
142
|
dependency: "direct main"
|
|
134
143
|
description: flutter
|
|
@@ -167,26 +176,18 @@ packages:
|
|
|
167
176
|
dependency: transitive
|
|
168
177
|
description:
|
|
169
178
|
name: flutter_plugin_android_lifecycle
|
|
170
|
-
sha256:
|
|
171
|
-
url: "https://pub.dev"
|
|
172
|
-
source: hosted
|
|
173
|
-
version: "2.0.27"
|
|
174
|
-
flutter_redux:
|
|
175
|
-
dependency: transitive
|
|
176
|
-
description:
|
|
177
|
-
name: flutter_redux
|
|
178
|
-
sha256: "3b20be9e08d0038e1452fbfa1fdb1ea0a7c3738c997734530b3c6d0bb5fcdbdc"
|
|
179
|
+
sha256: f948e346c12f8d5480d2825e03de228d0eb8c3a737e4cdaa122267b89c022b5e
|
|
179
180
|
url: "https://pub.dev"
|
|
180
181
|
source: hosted
|
|
181
|
-
version: "0.
|
|
182
|
+
version: "2.0.28"
|
|
182
183
|
flutter_svg:
|
|
183
184
|
dependency: transitive
|
|
184
185
|
description:
|
|
185
186
|
name: flutter_svg
|
|
186
|
-
sha256:
|
|
187
|
+
sha256: d44bf546b13025ec7353091516f6881f1d4c633993cb109c3916c3a0159dadf1
|
|
187
188
|
url: "https://pub.dev"
|
|
188
189
|
source: hosted
|
|
189
|
-
version: "2.0
|
|
190
|
+
version: "2.1.0"
|
|
190
191
|
flutter_test:
|
|
191
192
|
dependency: "direct dev"
|
|
192
193
|
description: flutter
|
|
@@ -229,14 +230,6 @@ packages:
|
|
|
229
230
|
url: "https://pub.dev"
|
|
230
231
|
source: hosted
|
|
231
232
|
version: "0.19.0"
|
|
232
|
-
js:
|
|
233
|
-
dependency: transitive
|
|
234
|
-
description:
|
|
235
|
-
name: js
|
|
236
|
-
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
|
|
237
|
-
url: "https://pub.dev"
|
|
238
|
-
source: hosted
|
|
239
|
-
version: "0.6.7"
|
|
240
233
|
json_annotation:
|
|
241
234
|
dependency: transitive
|
|
242
235
|
description:
|
|
@@ -317,6 +310,22 @@ packages:
|
|
|
317
310
|
url: "https://pub.dev"
|
|
318
311
|
source: hosted
|
|
319
312
|
version: "1.16.0"
|
|
313
|
+
msgpack_dart:
|
|
314
|
+
dependency: transitive
|
|
315
|
+
description:
|
|
316
|
+
name: msgpack_dart
|
|
317
|
+
sha256: c2d235ed01f364719b5296aecf43ac330f0d7bc865fa134d0d7910a40454dffb
|
|
318
|
+
url: "https://pub.dev"
|
|
319
|
+
source: hosted
|
|
320
|
+
version: "1.0.1"
|
|
321
|
+
nested:
|
|
322
|
+
dependency: transitive
|
|
323
|
+
description:
|
|
324
|
+
name: nested
|
|
325
|
+
sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
|
|
326
|
+
url: "https://pub.dev"
|
|
327
|
+
source: hosted
|
|
328
|
+
version: "1.0.0"
|
|
320
329
|
path:
|
|
321
330
|
dependency: transitive
|
|
322
331
|
description:
|
|
@@ -333,6 +342,30 @@ packages:
|
|
|
333
342
|
url: "https://pub.dev"
|
|
334
343
|
source: hosted
|
|
335
344
|
version: "1.1.0"
|
|
345
|
+
path_provider:
|
|
346
|
+
dependency: transitive
|
|
347
|
+
description:
|
|
348
|
+
name: path_provider
|
|
349
|
+
sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
|
|
350
|
+
url: "https://pub.dev"
|
|
351
|
+
source: hosted
|
|
352
|
+
version: "2.1.5"
|
|
353
|
+
path_provider_android:
|
|
354
|
+
dependency: transitive
|
|
355
|
+
description:
|
|
356
|
+
name: path_provider_android
|
|
357
|
+
sha256: d0d310befe2c8ab9e7f393288ccbb11b60c019c6b5afc21973eeee4dda2b35e9
|
|
358
|
+
url: "https://pub.dev"
|
|
359
|
+
source: hosted
|
|
360
|
+
version: "2.2.17"
|
|
361
|
+
path_provider_foundation:
|
|
362
|
+
dependency: transitive
|
|
363
|
+
description:
|
|
364
|
+
name: path_provider_foundation
|
|
365
|
+
sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
|
|
366
|
+
url: "https://pub.dev"
|
|
367
|
+
source: hosted
|
|
368
|
+
version: "2.4.1"
|
|
336
369
|
path_provider_linux:
|
|
337
370
|
dependency: transitive
|
|
338
371
|
description:
|
|
@@ -381,70 +414,78 @@ packages:
|
|
|
381
414
|
url: "https://pub.dev"
|
|
382
415
|
source: hosted
|
|
383
416
|
version: "2.1.8"
|
|
417
|
+
provider:
|
|
418
|
+
dependency: transitive
|
|
419
|
+
description:
|
|
420
|
+
name: provider
|
|
421
|
+
sha256: "4abbd070a04e9ddc287673bf5a030c7ca8b685ff70218720abab8b092f53dd84"
|
|
422
|
+
url: "https://pub.dev"
|
|
423
|
+
source: hosted
|
|
424
|
+
version: "6.1.5"
|
|
384
425
|
record:
|
|
385
426
|
dependency: "direct main"
|
|
386
427
|
description:
|
|
387
428
|
name: record
|
|
388
|
-
sha256:
|
|
429
|
+
sha256: daeb3f9b3fea9797094433fe6e49a879d8e4ca4207740bc6dc7e4a58764f0817
|
|
389
430
|
url: "https://pub.dev"
|
|
390
431
|
source: hosted
|
|
391
|
-
version: "
|
|
432
|
+
version: "6.0.0"
|
|
392
433
|
record_android:
|
|
393
434
|
dependency: transitive
|
|
394
435
|
description:
|
|
395
436
|
name: record_android
|
|
396
|
-
sha256: "
|
|
437
|
+
sha256: "97d7122455f30de89a01c6c244c839085be6b12abca251fc0e78f67fed73628b"
|
|
397
438
|
url: "https://pub.dev"
|
|
398
439
|
source: hosted
|
|
399
|
-
version: "1.3.
|
|
400
|
-
|
|
440
|
+
version: "1.3.3"
|
|
441
|
+
record_ios:
|
|
401
442
|
dependency: transitive
|
|
402
443
|
description:
|
|
403
|
-
name:
|
|
404
|
-
sha256:
|
|
444
|
+
name: record_ios
|
|
445
|
+
sha256: "73706ebbece6150654c9d6f57897cf9b622c581148304132ba85dba15df0fdfb"
|
|
405
446
|
url: "https://pub.dev"
|
|
406
447
|
source: hosted
|
|
407
|
-
version: "1.
|
|
448
|
+
version: "1.0.0"
|
|
408
449
|
record_linux:
|
|
409
450
|
dependency: transitive
|
|
410
451
|
description:
|
|
411
452
|
name: record_linux
|
|
412
|
-
sha256: "
|
|
453
|
+
sha256: "0626678a092c75ce6af1e32fe7fd1dea709b92d308bc8e3b6d6348e2430beb95"
|
|
413
454
|
url: "https://pub.dev"
|
|
414
455
|
source: hosted
|
|
415
|
-
version: "
|
|
456
|
+
version: "1.1.1"
|
|
457
|
+
record_macos:
|
|
458
|
+
dependency: transitive
|
|
459
|
+
description:
|
|
460
|
+
name: record_macos
|
|
461
|
+
sha256: "02240833fde16c33fcf2c589f3e08d4394b704761b4a3bb609d872ff3043fbbd"
|
|
462
|
+
url: "https://pub.dev"
|
|
463
|
+
source: hosted
|
|
464
|
+
version: "1.0.0"
|
|
416
465
|
record_platform_interface:
|
|
417
466
|
dependency: transitive
|
|
418
467
|
description:
|
|
419
468
|
name: record_platform_interface
|
|
420
|
-
sha256:
|
|
469
|
+
sha256: c1ad38f51e4af88a085b3e792a22c685cb3e7c23fc37aa7ce44c4cf18f25fe89
|
|
421
470
|
url: "https://pub.dev"
|
|
422
471
|
source: hosted
|
|
423
|
-
version: "1.
|
|
472
|
+
version: "1.3.0"
|
|
424
473
|
record_web:
|
|
425
474
|
dependency: transitive
|
|
426
475
|
description:
|
|
427
476
|
name: record_web
|
|
428
|
-
sha256:
|
|
477
|
+
sha256: "024c81eb7f51468b1833a3eca8b461c7ca25c04899dba37abe580bb57afd32e4"
|
|
429
478
|
url: "https://pub.dev"
|
|
430
479
|
source: hosted
|
|
431
|
-
version: "1.1.
|
|
480
|
+
version: "1.1.8"
|
|
432
481
|
record_windows:
|
|
433
482
|
dependency: transitive
|
|
434
483
|
description:
|
|
435
484
|
name: record_windows
|
|
436
|
-
sha256: "
|
|
437
|
-
url: "https://pub.dev"
|
|
438
|
-
source: hosted
|
|
439
|
-
version: "1.0.5"
|
|
440
|
-
redux:
|
|
441
|
-
dependency: transitive
|
|
442
|
-
description:
|
|
443
|
-
name: redux
|
|
444
|
-
sha256: "1e86ed5b1a9a717922d0a0ca41f9bf49c1a587d50050e9426fc65b14e85ec4d7"
|
|
485
|
+
sha256: "85a22fc97f6d73ecd67c8ba5f2f472b74ef1d906f795b7970f771a0914167e99"
|
|
445
486
|
url: "https://pub.dev"
|
|
446
487
|
source: hosted
|
|
447
|
-
version: "
|
|
488
|
+
version: "1.0.6"
|
|
448
489
|
screen_retriever:
|
|
449
490
|
dependency: transitive
|
|
450
491
|
description:
|
|
@@ -489,18 +530,18 @@ packages:
|
|
|
489
530
|
dependency: transitive
|
|
490
531
|
description:
|
|
491
532
|
name: sensors_plus
|
|
492
|
-
sha256: "
|
|
533
|
+
sha256: "905282c917c6bb731c242f928665c2ea15445aa491249dea9d98d7c79dc8fd39"
|
|
493
534
|
url: "https://pub.dev"
|
|
494
535
|
source: hosted
|
|
495
|
-
version: "
|
|
536
|
+
version: "6.1.1"
|
|
496
537
|
sensors_plus_platform_interface:
|
|
497
538
|
dependency: transitive
|
|
498
539
|
description:
|
|
499
540
|
name: sensors_plus_platform_interface
|
|
500
|
-
sha256:
|
|
541
|
+
sha256: "58815d2f5e46c0c41c40fb39375d3f127306f7742efe3b891c0b1c87e2b5cd5d"
|
|
501
542
|
url: "https://pub.dev"
|
|
502
543
|
source: hosted
|
|
503
|
-
version: "
|
|
544
|
+
version: "2.0.1"
|
|
504
545
|
shared_preferences:
|
|
505
546
|
dependency: transitive
|
|
506
547
|
description:
|
|
@@ -513,10 +554,10 @@ packages:
|
|
|
513
554
|
dependency: transitive
|
|
514
555
|
description:
|
|
515
556
|
name: shared_preferences_android
|
|
516
|
-
sha256: "
|
|
557
|
+
sha256: "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac"
|
|
517
558
|
url: "https://pub.dev"
|
|
518
559
|
source: hosted
|
|
519
|
-
version: "2.4.
|
|
560
|
+
version: "2.4.10"
|
|
520
561
|
shared_preferences_foundation:
|
|
521
562
|
dependency: transitive
|
|
522
563
|
description:
|
|
@@ -638,18 +679,18 @@ packages:
|
|
|
638
679
|
dependency: transitive
|
|
639
680
|
description:
|
|
640
681
|
name: url_launcher_android
|
|
641
|
-
sha256: "
|
|
682
|
+
sha256: "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79"
|
|
642
683
|
url: "https://pub.dev"
|
|
643
684
|
source: hosted
|
|
644
|
-
version: "6.3.
|
|
685
|
+
version: "6.3.16"
|
|
645
686
|
url_launcher_ios:
|
|
646
687
|
dependency: transitive
|
|
647
688
|
description:
|
|
648
689
|
name: url_launcher_ios
|
|
649
|
-
sha256: "
|
|
690
|
+
sha256: "7f2022359d4c099eea7df3fdf739f7d3d3b9faf3166fb1dd390775176e0b76cb"
|
|
650
691
|
url: "https://pub.dev"
|
|
651
692
|
source: hosted
|
|
652
|
-
version: "6.3.
|
|
693
|
+
version: "6.3.3"
|
|
653
694
|
url_launcher_linux:
|
|
654
695
|
dependency: transitive
|
|
655
696
|
description:
|
|
@@ -678,10 +719,10 @@ packages:
|
|
|
678
719
|
dependency: transitive
|
|
679
720
|
description:
|
|
680
721
|
name: url_launcher_web
|
|
681
|
-
sha256: "
|
|
722
|
+
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
|
|
682
723
|
url: "https://pub.dev"
|
|
683
724
|
source: hosted
|
|
684
|
-
version: "2.4.
|
|
725
|
+
version: "2.4.1"
|
|
685
726
|
url_launcher_windows:
|
|
686
727
|
dependency: transitive
|
|
687
728
|
description:
|
|
@@ -702,10 +743,10 @@ packages:
|
|
|
702
743
|
dependency: transitive
|
|
703
744
|
description:
|
|
704
745
|
name: vector_graphics
|
|
705
|
-
sha256:
|
|
746
|
+
sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
|
|
706
747
|
url: "https://pub.dev"
|
|
707
748
|
source: hosted
|
|
708
|
-
version: "1.1.
|
|
749
|
+
version: "1.1.19"
|
|
709
750
|
vector_graphics_codec:
|
|
710
751
|
dependency: transitive
|
|
711
752
|
description:
|
|
@@ -718,10 +759,10 @@ packages:
|
|
|
718
759
|
dependency: transitive
|
|
719
760
|
description:
|
|
720
761
|
name: vector_graphics_compiler
|
|
721
|
-
sha256: "
|
|
762
|
+
sha256: "557a315b7d2a6dbb0aaaff84d857967ce6bdc96a63dc6ee2a57ce5a6ee5d3331"
|
|
722
763
|
url: "https://pub.dev"
|
|
723
764
|
source: hosted
|
|
724
|
-
version: "1.1.
|
|
765
|
+
version: "1.1.17"
|
|
725
766
|
vector_math:
|
|
726
767
|
dependency: transitive
|
|
727
768
|
description:
|
|
@@ -746,30 +787,46 @@ packages:
|
|
|
746
787
|
url: "https://pub.dev"
|
|
747
788
|
source: hosted
|
|
748
789
|
version: "1.1.1"
|
|
790
|
+
web_socket:
|
|
791
|
+
dependency: transitive
|
|
792
|
+
description:
|
|
793
|
+
name: web_socket
|
|
794
|
+
sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c"
|
|
795
|
+
url: "https://pub.dev"
|
|
796
|
+
source: hosted
|
|
797
|
+
version: "1.0.1"
|
|
749
798
|
web_socket_channel:
|
|
750
799
|
dependency: transitive
|
|
751
800
|
description:
|
|
752
801
|
name: web_socket_channel
|
|
753
|
-
sha256:
|
|
802
|
+
sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8
|
|
754
803
|
url: "https://pub.dev"
|
|
755
804
|
source: hosted
|
|
756
|
-
version: "
|
|
805
|
+
version: "3.0.3"
|
|
757
806
|
win32:
|
|
758
807
|
dependency: transitive
|
|
759
808
|
description:
|
|
760
809
|
name: win32
|
|
761
|
-
sha256:
|
|
810
|
+
sha256: "329edf97fdd893e0f1e3b9e88d6a0e627128cc17cc316a8d67fda8f1451178ba"
|
|
811
|
+
url: "https://pub.dev"
|
|
812
|
+
source: hosted
|
|
813
|
+
version: "5.13.0"
|
|
814
|
+
win32_registry:
|
|
815
|
+
dependency: transitive
|
|
816
|
+
description:
|
|
817
|
+
name: win32_registry
|
|
818
|
+
sha256: "6f1b564492d0147b330dd794fee8f512cec4977957f310f9951b5f9d83618dae"
|
|
762
819
|
url: "https://pub.dev"
|
|
763
820
|
source: hosted
|
|
764
|
-
version: "
|
|
821
|
+
version: "2.1.0"
|
|
765
822
|
window_manager:
|
|
766
823
|
dependency: transitive
|
|
767
824
|
description:
|
|
768
825
|
name: window_manager
|
|
769
|
-
sha256: "
|
|
826
|
+
sha256: "51d50168ab267d344b975b15390426b1243600d436770d3f13de67e55b05ec16"
|
|
770
827
|
url: "https://pub.dev"
|
|
771
828
|
source: hosted
|
|
772
|
-
version: "0.
|
|
829
|
+
version: "0.5.0"
|
|
773
830
|
window_to_front:
|
|
774
831
|
dependency: transitive
|
|
775
832
|
description:
|
|
@@ -796,4 +853,4 @@ packages:
|
|
|
796
853
|
version: "6.5.0"
|
|
797
854
|
sdks:
|
|
798
855
|
dart: ">=3.7.0 <4.0.0"
|
|
799
|
-
flutter: ">=3.
|
|
856
|
+
flutter: ">=3.29.0"
|
|
@@ -3,6 +3,7 @@ description: Flet AudioRecorder control
|
|
|
3
3
|
homepage: https://flet.dev
|
|
4
4
|
repository: https://github.com/flet-dev/flet-audio-recorder/src/flutter/flet_audio_recorder
|
|
5
5
|
version: 0.2.0
|
|
6
|
+
publish_to: none
|
|
6
7
|
environment:
|
|
7
8
|
sdk: '>=3.2.3 <4.0.0'
|
|
8
9
|
flutter: '>=1.17.0'
|
|
@@ -10,8 +11,12 @@ dependencies:
|
|
|
10
11
|
flutter:
|
|
11
12
|
sdk: flutter
|
|
12
13
|
collection: ^1.16.0
|
|
13
|
-
record:
|
|
14
|
-
flet:
|
|
14
|
+
record: 6.0.0
|
|
15
|
+
flet:
|
|
16
|
+
git:
|
|
17
|
+
url: https://github.com/flet-dev/flet.git
|
|
18
|
+
path: packages/flet
|
|
19
|
+
ref: v1
|
|
15
20
|
dev_dependencies:
|
|
16
21
|
flutter_test:
|
|
17
22
|
sdk: flutter
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: flet-audio-recorder
|
|
3
|
-
Version: 0.2.0.dev17
|
|
4
|
-
Summary: AudioRecorder control for Flet
|
|
5
|
-
Author-email: Flet contributors <hello@flet.dev>
|
|
6
|
-
Project-URL: Homepage, https://flet.dev
|
|
7
|
-
Project-URL: Documentation, https://flet.dev/docs/controls/audiorecorder
|
|
8
|
-
Project-URL: Repository, https://github.com/flet-dev/flet-audio-recorder
|
|
9
|
-
Project-URL: Issues, https://github.com/flet-dev/flet-audio-recorder/issues
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Requires-Python: >=3.8
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
Requires-Dist: flet>=0.25.2
|
|
14
|
-
|
|
15
|
-
# AudioRecorder control for Flet
|
|
16
|
-
|
|
17
|
-
`AudioRecorder` control for Flet.
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
Add `flet-audio-recorder` as dependency (`pyproject.toml` or `requirements.txt`) to your Flet project.
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```py
|
|
26
|
-
|
|
27
|
-
import flet as ft
|
|
28
|
-
|
|
29
|
-
import flet_audio_recorder as far
|
|
30
|
-
|
|
31
|
-
async def main(page: ft.Page):
|
|
32
|
-
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
|
|
33
|
-
page.appbar = ft.AppBar(title=ft.Text("Audio Recorder"), center_title=True)
|
|
34
|
-
|
|
35
|
-
path = "test-audio-file.wav"
|
|
36
|
-
|
|
37
|
-
async def handle_start_recording(e):
|
|
38
|
-
print(f"StartRecording: {path}")
|
|
39
|
-
await audio_rec.start_recording_async(path)
|
|
40
|
-
|
|
41
|
-
async def handle_stop_recording(e):
|
|
42
|
-
output_path = await audio_rec.stop_recording_async()
|
|
43
|
-
print(f"StopRecording: {output_path}")
|
|
44
|
-
if page.web and output_path is not None:
|
|
45
|
-
await page.launch_url_async(output_path)
|
|
46
|
-
|
|
47
|
-
async def handle_list_devices(e):
|
|
48
|
-
devices = await audio_rec.get_input_devices_async()
|
|
49
|
-
print(devices)
|
|
50
|
-
|
|
51
|
-
async def handle_has_permission(e):
|
|
52
|
-
try:
|
|
53
|
-
print(f"HasPermission: {await audio_rec.has_permission_async()}")
|
|
54
|
-
except Exception as e:
|
|
55
|
-
print(e)
|
|
56
|
-
|
|
57
|
-
async def handle_pause(e):
|
|
58
|
-
print(f"isRecording: {await audio_rec.is_recording_async()}")
|
|
59
|
-
if await audio_rec.is_recording_async():
|
|
60
|
-
await audio_rec.pause_recording_async()
|
|
61
|
-
|
|
62
|
-
async def handle_resume(e):
|
|
63
|
-
print(f"isPaused: {await audio_rec.is_paused_async()}")
|
|
64
|
-
if await audio_rec.is_paused_async():
|
|
65
|
-
await audio_rec.resume_recording_async()
|
|
66
|
-
|
|
67
|
-
async def handle_audio_encoding_test(e):
|
|
68
|
-
for i in list(far.AudioEncoder):
|
|
69
|
-
print(f"{i}: {await audio_rec.is_supported_encoder_async(i)}")
|
|
70
|
-
|
|
71
|
-
async def handle_state_change(e):
|
|
72
|
-
print(f"State Changed: {e.data}")
|
|
73
|
-
|
|
74
|
-
audio_rec = far.AudioRecorder(
|
|
75
|
-
audio_encoder=far.AudioEncoder.WAV,
|
|
76
|
-
on_state_changed=handle_state_change,
|
|
77
|
-
)
|
|
78
|
-
page.overlay.append(audio_rec)
|
|
79
|
-
await page.update_async()
|
|
80
|
-
|
|
81
|
-
await page.add_async(
|
|
82
|
-
ft.ElevatedButton("Start Audio Recorder", on_click=handle_start_recording),
|
|
83
|
-
ft.ElevatedButton("Stop Audio Recorder", on_click=handle_stop_recording),
|
|
84
|
-
ft.ElevatedButton("List Devices", on_click=handle_list_devices),
|
|
85
|
-
ft.ElevatedButton("Pause Recording", on_click=handle_pause),
|
|
86
|
-
ft.ElevatedButton("Resume Recording", on_click=handle_resume),
|
|
87
|
-
ft.ElevatedButton("Test AudioEncodings", on_click=handle_audio_encoding_test),
|
|
88
|
-
ft.ElevatedButton("Has Permission", on_click=handle_has_permission),
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
ft.app(main)
|
|
93
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
flet_audio_recorder/__init__.py,sha256=r-oY247ol9kOAjUWlqZ6KycB_UvpDnbFkmZ28SoXRqY,147
|
|
2
|
-
flet_audio_recorder/audio_recorder.py,sha256=80AJ6n0ttEdTtCBOPBmJEFEnHIHCwWt7QRXktzrChY8,8865
|
|
3
|
-
flutter/flet_audio_recorder/CHANGELOG.md,sha256=66sWepPaeTc9_lzcYIGU55AlxSU5Z1XVtknXpzd_-p8,40
|
|
4
|
-
flutter/flet_audio_recorder/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
5
|
-
flutter/flet_audio_recorder/README.md,sha256=KcVP2UEKbA9P0r3i2GimRFFLwOqV3Az_7IjZYEXhd8w,76
|
|
6
|
-
flutter/flet_audio_recorder/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
|
|
7
|
-
flutter/flet_audio_recorder/pubspec.lock,sha256=8TW1u8KVq_9_Y2EzXY_rtLXh1WodjYCAWfrJ4VFoHuc,23602
|
|
8
|
-
flutter/flet_audio_recorder/pubspec.yaml,sha256=NUiMZLwGc0l8m-BZQhIQz6gGt9EfZUFVnxcxtcF7X4c,431
|
|
9
|
-
flutter/flet_audio_recorder/lib/flet_audio_recorder.dart,sha256=G7PZrFNGuF-Q5HNgslMt3GQINx7tMqs5uXg6tcJ50Xw,93
|
|
10
|
-
flutter/flet_audio_recorder/lib/src/audio_recorder.dart,sha256=jUPsjU1UpAth9zEREwsxCqHCxDkspwqgdPUOcgQ1qv0,5753
|
|
11
|
-
flutter/flet_audio_recorder/lib/src/create_control.dart,sha256=JkeTh2RUrGVwkXOGAIKdlNBaqpGeR9H6IPG9Dn5-Lrs,387
|
|
12
|
-
flutter/flet_audio_recorder/lib/src/utils/audio_recorder.dart,sha256=soCZM07_9BCrZyrw3nz_3fX-Py8CP07ZfUERyQYsMJo,626
|
|
13
|
-
flet_audio_recorder-0.2.0.dev17.dist-info/METADATA,sha256=g-p3kqvXyMCMZ5Pq098DWIvL0gUVJ5DneQ8qf3SDtkU,3163
|
|
14
|
-
flet_audio_recorder-0.2.0.dev17.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
15
|
-
flet_audio_recorder-0.2.0.dev17.dist-info/top_level.txt,sha256=fi4uOe4C7Pitw9OIzx7l0TgjkYomndtLYrQg8mjD-iA,28
|
|
16
|
-
flet_audio_recorder-0.2.0.dev17.dist-info/RECORD,,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import 'package:flet/flet.dart';
|
|
2
|
-
|
|
3
|
-
import 'audio_recorder.dart';
|
|
4
|
-
|
|
5
|
-
CreateControlFactory createControl = (CreateControlArgs args) {
|
|
6
|
-
switch (args.control.type) {
|
|
7
|
-
case "audiorecorder":
|
|
8
|
-
return AudioRecorderControl(
|
|
9
|
-
parent: args.parent, control: args.control, backend: args.backend);
|
|
10
|
-
default:
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
void ensureInitialized() {
|
|
16
|
-
// nothing to do
|
|
17
|
-
}
|
|
File without changes
|