Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ming-Hsuan-Tu
2025-08-19 10:47:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-08-19 10:47:33 +0800
Commit
e536e6e7abe8e3750b22015daeb0c72cd0b81077
e536e6e7
1 parent
13788a4e
fix(flutter): fix unicode problem in windows path (#2508)
显示空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
5 行增加
和
5 行删除
flutter-examples/streaming_asr/lib/utils.dart
flutter-examples/tts/lib/isolate_tts.dart
flutter-examples/tts/lib/model.dart
flutter-examples/tts/lib/utils.dart
flutter-examples/streaming_asr/lib/utils.dart
查看文件 @
e536e6e
...
...
@@ -7,7 +7,7 @@ import "dart:io";
// Copy the asset file from src to dst
Future
<
String
>
copyAssetFile
(
String
src
,
[
String
?
dst
])
async
{
final
Directory
directory
=
await
getApplication
Documents
Directory
();
final
Directory
directory
=
await
getApplication
Support
Directory
();
if
(
dst
==
null
)
{
dst
=
basename
(
src
);
}
...
...
flutter-examples/tts/lib/isolate_tts.dart
查看文件 @
e536e6e
...
...
@@ -104,7 +104,7 @@ class IsolateTts {
throw
Exception
(
'You are supposed to select a model by changing the code before you run the app'
);
}
final
Directory
directory
=
await
getApplication
Documents
Directory
();
final
Directory
directory
=
await
getApplication
Support
Directory
();
modelName
=
p
.
join
(
directory
.
path
,
modelDir
,
modelName
);
if
(
ruleFsts
!=
''
)
{
...
...
flutter-examples/tts/lib/model.dart
查看文件 @
e536e6e
...
...
@@ -109,7 +109,7 @@ Future<sherpa_onnx.OfflineTts> createOfflineTts() async {
'You are supposed to select a model by changing the code before you run the app'
);
}
final
Directory
directory
=
await
getApplication
Documents
Directory
();
final
Directory
directory
=
await
getApplication
Support
Directory
();
modelName
=
p
.
join
(
directory
.
path
,
modelDir
,
modelName
);
if
(
ruleFsts
!=
''
)
{
...
...
flutter-examples/tts/lib/utils.dart
查看文件 @
e536e6e
...
...
@@ -7,7 +7,7 @@ import 'package:path/path.dart' as p;
import
'package:path_provider/path_provider.dart'
;
Future
<
String
>
generateWaveFilename
([
String
suffix
=
''
])
async
{
final
Directory
directory
=
await
getApplication
Documents
Directory
();
final
Directory
directory
=
await
getApplication
Support
Directory
();
DateTime
now
=
DateTime
.
now
();
final
filename
=
'
${now.year.toString()}
-
${now.month.toString().padLeft(2, '0')}
-
${now.day.toString().padLeft(2, '0')}
-
${now.hour.toString().padLeft(2, '0')}
-
${now.minute.toString().padLeft(2, '0')}
-
${now.second.toString().padLeft(2, '0')}$suffix
.wav'
;
...
...
@@ -38,7 +38,7 @@ Future<void> copyAllAssetFiles() async {
// Copy the asset file from src to dst.
// If dst already exists, then just skip the copy
Future
<
String
>
copyAssetFile
(
String
src
,
[
String
?
dst
])
async
{
final
Directory
directory
=
await
getApplication
Documents
Directory
();
final
Directory
directory
=
await
getApplication
Support
Directory
();
if
(
dst
==
null
)
{
dst
=
p
.
basename
(
src
);
}
...
...
请
注册
或
登录
后发表评论