Skip to content

Commit

Permalink
Restore Record x TTS demo
Browse files Browse the repository at this point in the history
Removed Record when CI failures were blaming it; eventually proved it was due to Cocoapods 1.16.1 being installed and downgraded to 1.151 at our request.
  • Loading branch information
jpohhhh committed Nov 4, 2024
1 parent 197cc8c commit ba97b15
Show file tree
Hide file tree
Showing 9 changed files with 716 additions and 706 deletions.
775 changes: 388 additions & 387 deletions example/lib/stt_service.dart

Large diffs are not rendered by default.

632 changes: 314 additions & 318 deletions example/lib/tts_demo_widget.dart

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions example/linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <audioplayers_linux/audioplayers_linux_plugin.h>
#include <fonnx/fonnx_plugin.h>
#include <record_linux/record_linux_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) audioplayers_linux_registrar =
Expand All @@ -16,4 +17,7 @@ void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) fonnx_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FonnxPlugin");
fonnx_plugin_register_with_registrar(fonnx_registrar);
g_autoptr(FlPluginRegistrar) record_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "RecordLinuxPlugin");
record_linux_plugin_register_with_registrar(record_linux_registrar);
}
1 change: 1 addition & 0 deletions example/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
list(APPEND FLUTTER_PLUGIN_LIST
audioplayers_linux
fonnx
record_linux
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down
2 changes: 2 additions & 0 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import Foundation
import audioplayers_darwin
import fonnx
import path_provider_foundation
import record_darwin

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AudioplayersDarwinPlugin.register(with: registry.registrar(forPlugin: "AudioplayersDarwinPlugin"))
FonnxPlugin.register(with: registry.registrar(forPlugin: "FonnxPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
RecordPlugin.register(with: registry.registrar(forPlugin: "RecordPlugin"))
}
2 changes: 1 addition & 1 deletion example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 91f0996b85caf3478dfdcf490d95bb166c22642b

COCOAPODS: 1.15.2
COCOAPODS: 1.16.2
2 changes: 2 additions & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ dependencies:
audioplayers: ^6.0.0
file_picker: ^8.1.2
collection: ^1.18.0
record: '<5.2.0'
record_darwin: '<1.2.0'
dependency_overrides:
audioplayers_web:
git:
Expand Down
3 changes: 3 additions & 0 deletions example/windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@

#include <audioplayers_windows/audioplayers_windows_plugin.h>
#include <fonnx/fonnx_plugin_c_api.h>
#include <record_windows/record_windows_plugin_c_api.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
AudioplayersWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("AudioplayersWindowsPlugin"));
FonnxPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FonnxPluginCApi"));
RecordWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("RecordWindowsPluginCApi"));
}
1 change: 1 addition & 0 deletions example/windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
list(APPEND FLUTTER_PLUGIN_LIST
audioplayers_windows
fonnx
record_windows
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down

0 comments on commit ba97b15

Please sign in to comment.