Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Icon?
build/
*.dmg

# sherpa-onnx build artifacts
vendor/sherpa-onnx-src/
vendor/sherpa-onnx-build/
vendor/sherpa-onnx.xcframework/

# Misc
*.swp
*.swo
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ open TransFlow/TransFlow.xcodeproj

在 Xcode 中选择 TransFlow target,点击运行即可。

### 本地 STT 开发环境(sherpa-onnx)

如果你要开发本地离线 STT(Parakeet/Nemotron)能力,请先构建 sherpa-onnx XCFramework:

```bash
./scripts/build-sherpa-onnx.sh
```

如果需要完整清理后重建(源码 + 构建产物):

```bash
./scripts/build-sherpa-onnx.sh --clean --reclone
```

## 🚀 快速开始

1. 启动 TransFlow,授予麦克风权限
Expand Down
14 changes: 14 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ open TransFlow/TransFlow.xcodeproj

Select the TransFlow target in Xcode and click Run.

### Local STT Developer Setup (sherpa-onnx)

If you are developing the local on-device STT path (Parakeet/Nemotron), build the sherpa-onnx XCFramework first:

```bash
./scripts/build-sherpa-onnx.sh
```

For a full clean rebuild of source + artifacts:

```bash
./scripts/build-sherpa-onnx.sh --clean --reclone
```

## 🚀 Quick Start

1. Launch TransFlow and grant microphone permission
Expand Down
15 changes: 13 additions & 2 deletions TransFlow/TransFlow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
objectVersion = 77;
objects = {

/* Begin PBXBuildFile section */
AA00000200000002 /* sherpa-onnx.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA00000100000001 /* sherpa-onnx.xcframework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
F4C5EE022F3638BE006D8A00 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
Expand All @@ -24,6 +28,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
AA00000100000001 /* sherpa-onnx.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "sherpa-onnx.xcframework"; path = "../vendor/sherpa-onnx.xcframework"; sourceTree = "<group>"; };
F4C5EDF42F3638BD006D8A00 /* TransFlow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TransFlow.app; sourceTree = BUILT_PRODUCTS_DIR; };
F4C5EE012F3638BE006D8A00 /* TransFlowTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TransFlowTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
F4C5EE0B2F3638BE006D8A00 /* TransFlowUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TransFlowUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -65,6 +70,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
AA00000200000002 /* sherpa-onnx.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -88,6 +94,7 @@
F4C5EDEB2F3638BD006D8A00 = {
isa = PBXGroup;
children = (
AA00000100000001 /* sherpa-onnx.xcframework */,
F4C5EDF62F3638BD006D8A00 /* TransFlow */,
F4C5EE042F3638BE006D8A00 /* TransFlowTests */,
F4C5EE0E2F3638BE006D8A00 /* TransFlowUITests */,
Expand Down Expand Up @@ -421,14 +428,16 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.2.0;
OTHER_LDFLAGS = "-lc++";
PRODUCT_BUNDLE_IDENTIFIER = com.cyron.TransFlow;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "TransFlow/TransFlow-Bridging-Header.h";
SWIFT_STRICT_CONCURRENCY = complete;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 6.0;
Expand All @@ -455,14 +464,16 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.2.0;
OTHER_LDFLAGS = "-lc++";
PRODUCT_BUNDLE_IDENTIFIER = com.cyron.TransFlow;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "TransFlow/TransFlow-Bridging-Header.h";
SWIFT_STRICT_CONCURRENCY = complete;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 6.0;
Expand Down
Loading