feat: Flutter example with macOS support
This commit is contained in:
@@ -15,6 +15,10 @@ https://github.com/user-attachments/assets/ea66f6d6-7bc5-4308-8a88-1ce3e07400d2
|
|||||||
|
|
||||||
> 🎧 **Try it now**: Experience Supertonic in your browser with our [**Interactive Demo**](https://huggingface.co/spaces/Supertone/supertonic#interactive-demo), or get started with pre-trained models from [**Hugging Face Hub**](https://huggingface.co/Supertone/supertonic)
|
> 🎧 **Try it now**: Experience Supertonic in your browser with our [**Interactive Demo**](https://huggingface.co/spaces/Supertone/supertonic#interactive-demo), or get started with pre-trained models from [**Hugging Face Hub**](https://huggingface.co/Supertone/supertonic)
|
||||||
|
|
||||||
|
## 📰 Update News
|
||||||
|
|
||||||
|
**2025.11.24** - Added Flutter SDK support with macOS compatibility
|
||||||
|
|
||||||
### Table of Contents
|
### Table of Contents
|
||||||
|
|
||||||
- [Why Supertonic?](#why-supertonic)
|
- [Why Supertonic?](#why-supertonic)
|
||||||
@@ -49,6 +53,7 @@ We provide ready-to-use TTS inference examples across multiple ecosystems:
|
|||||||
| [**Swift**](swift/) | `swift/` | macOS applications |
|
| [**Swift**](swift/) | `swift/` | macOS applications |
|
||||||
| [**iOS**](ios/) | `ios/` | Native iOS apps |
|
| [**iOS**](ios/) | `ios/` | Native iOS apps |
|
||||||
| [**Rust**](rust/) | `rust/` | Memory-safe systems |
|
| [**Rust**](rust/) | `rust/` | Memory-safe systems |
|
||||||
|
| [**Flutter**](flutter/) | `flutter/` | Cross-platform apps |
|
||||||
|
|
||||||
> For detailed usage instructions, please refer to the README.md in each language directory.
|
> For detailed usage instructions, please refer to the README.md in each language directory.
|
||||||
|
|
||||||
@@ -386,7 +391,7 @@ This paper describes the self-purification technique for training flow matching
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project’s sample code is released under the MIT License. - see the [LICENSE](https://github.com/supertone-inc/supertonic?tab=MIT-1-ov-file) for details.
|
This project's sample code is released under the MIT License. - see the [LICENSE](https://github.com/supertone-inc/supertonic?tab=MIT-1-ov-file) for details.
|
||||||
|
|
||||||
The accompanying model is released under the OpenRAIL-M License. - see the [LICENSE](https://huggingface.co/Supertone/supertonic/blob/main/LICENSE) file for details.
|
The accompanying model is released under the OpenRAIL-M License. - see the [LICENSE](https://huggingface.co/Supertone/supertonic/blob/main/LICENSE) file for details.
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class SupertonicApp extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Supertonic TTS',
|
title: 'Supertonic',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
@@ -208,7 +208,7 @@ class _TTSPageState extends State<TTSPage> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||||
title: const Text('Supertonic TTS'),
|
title: const Text('Supertonic'),
|
||||||
),
|
),
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
@@ -234,7 +234,8 @@ class _TTSPageState extends State<TTSPage> {
|
|||||||
),
|
),
|
||||||
if (_isLoading || _isGenerating) const SizedBox(width: 12),
|
if (_isLoading || _isGenerating) const SizedBox(width: 12),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(_status, style: const TextStyle(fontSize: 16)),
|
child:
|
||||||
|
Text(_status, style: const TextStyle(fontSize: 16)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -256,8 +257,7 @@ class _TTSPageState extends State<TTSPage> {
|
|||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
Text('Parameters',
|
Text('Parameters', style: Theme.of(context).textTheme.titleMedium),
|
||||||
style: Theme.of(context).textTheme.titleMedium),
|
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
// Denoising steps slider
|
// Denoising steps slider
|
||||||
@@ -274,13 +274,14 @@ class _TTSPageState extends State<TTSPage> {
|
|||||||
label: _totalSteps.toString(),
|
label: _totalSteps.toString(),
|
||||||
onChanged: _isLoading || _isGenerating
|
onChanged: _isLoading || _isGenerating
|
||||||
? null
|
? null
|
||||||
: (value) => setState(() => _totalSteps = value.toInt()),
|
: (value) =>
|
||||||
|
setState(() => _totalSteps = value.toInt()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 40,
|
width: 40,
|
||||||
child: Text(_totalSteps.toString(),
|
child:
|
||||||
textAlign: TextAlign.right),
|
Text(_totalSteps.toString(), textAlign: TextAlign.right),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -304,8 +305,8 @@ class _TTSPageState extends State<TTSPage> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 40,
|
width: 40,
|
||||||
child:
|
child: Text(_speed.toStringAsFixed(2),
|
||||||
Text(_speed.toStringAsFixed(2), textAlign: TextAlign.right),
|
textAlign: TextAlign.right),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user