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
yujinqiu
2024-04-01 14:59:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-04-01 14:59:40 +0800
Commit
fabd30e3bb2fc20bdf60d22f9425a589cbfd010d
fabd30e3
1 parent
3acf373b
Fix microphone privacy config (#727)
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
15 行增加
和
3 行删除
ios-swiftui/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj
ios-swiftui/SherpaOnnx/SherpaOnnx/Info.plist
ios-swiftui/SherpaOnnx/SherpaOnnx/SherpaOnnxViewModel.swift
ios-swiftui/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj
查看文件 @
fabd30e
...
...
@@ -57,6 +57,7 @@
C924F35F29DDB05D00A440A5 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/onnxruntime.xcframework"; sourceTree = "<group>"; };
C924F36129DDB15D00A440A5 /* Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extension.swift; sourceTree = "<group>"; };
C924F36329DDB1D500A440A5 /* SherpaOnnxViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SherpaOnnxViewModel.swift; sourceTree = "<group>"; };
DEFC34EE2BBA8AD100E174E9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
...
...
@@ -110,6 +111,7 @@
C924F32C29DDAC0B00A440A5 /* SherpaOnnx */ = {
isa = PBXGroup;
children = (
DEFC34EE2BBA8AD100E174E9 /* Info.plist */,
C924F36329DDB1D500A440A5 /* SherpaOnnxViewModel.swift */,
C924F36129DDB15D00A440A5 /* Extension.swift */,
C924F35D29DDAE8200A440A5 /* Model.swift */,
...
...
@@ -451,9 +453,12 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"SherpaOnnx/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = "${PROJECT_DIR}/../../build-ios/sherpa-onnx.xcframework/Headers/";
INFOPLIST_FILE = SherpaOnnx/Info.plist;
INFOPLIST_KEY_NSMicrophoneUsageDescription = "Use microphone to record voice";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
...
...
@@ -482,9 +487,12 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"SherpaOnnx/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = "${PROJECT_DIR}/../../build-ios/sherpa-onnx.xcframework/Headers/";
INFOPLIST_FILE = SherpaOnnx/Info.plist;
INFOPLIST_KEY_NSMicrophoneUsageDescription = "Use microphone to record voice";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
...
...
ios-swiftui/SherpaOnnx/SherpaOnnx/Info.plist
0 → 100644
查看文件 @
fabd30e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict/>
</plist>
...
...
ios-swiftui/SherpaOnnx/SherpaOnnx/SherpaOnnxViewModel.swift
查看文件 @
fabd30e
...
...
@@ -13,6 +13,7 @@ enum Status {
case
recording
}
@MainActor
class
SherpaOnnxViewModel
:
ObservableObject
{
@Published
var
status
:
Status
=
.
stop
@Published
var
subtitles
:
String
=
""
...
...
@@ -44,9 +45,7 @@ class SherpaOnnxViewModel: ObservableObject {
}
func
updateLabel
()
{
DispatchQueue
.
main
.
async
{
self
.
subtitles
=
self
.
results
}
self
.
subtitles
=
self
.
results
}
init
()
{
...
...
请
注册
或
登录
后发表评论