Skip to content

Commit

Permalink
Add farsi (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
bejager committed May 18, 2023
1 parent 76e6212 commit e894706
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" ?><Scheme LastUpgradeVersion="1310" version="1.7">
<BuildAction parallelizeBuildables="YES" buildImplicitDependencies="YES">
<PreActions>
<ExecutionAction ActionType="Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent title="Run Script" scriptText="${SRCROOT}/pre-build.sh fa جوجه تیغی simple_context_fa">
<EnvironmentBuildable>
<BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="1760DF28253A175000395344" BuildableName="PicovoiceForegroundAppDemo.app" BlueprintName="PicovoiceForegroundAppDemo" ReferencedContainer="container:PicovoiceForegroundAppDemo.xcodeproj">
</BuildableReference>
</EnvironmentBuildable>
</ActionContent>
</ExecutionAction>
</PreActions>
<BuildActionEntries>
<BuildActionEntry buildForTesting="YES" buildForRunning="YES" buildForProfiling="YES" buildForArchiving="YES" buildForAnalyzing="YES">
<BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="1760DF28253A175000395344" BuildableName="PicovoiceForegroundAppDemo.app" BlueprintName="PicovoiceForegroundAppDemo" ReferencedContainer="container:PicovoiceForegroundAppDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction buildConfiguration="Debug" selectedDebuggerIdentifier="Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier="Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv="YES">
<Testables>
<TestableReference skipped="NO">
<BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="1E1A67BC26C4388300EDD6EC" BuildableName="PicovoiceForegroundAppDemoUITests.xctest" BlueprintName="PicovoiceForegroundAppDemoUITests" ReferencedContainer="container:PicovoiceForegroundAppDemo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction buildConfiguration="Debug" selectedDebuggerIdentifier="Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier="Xcode.DebuggerFoundation.Launcher.LLDB" launchStyle="0" useCustomWorkingDirectory="NO" ignoresPersistentStateOnLaunch="NO" debugDocumentVersioning="YES" debugServiceExtension="internal" allowLocationSimulation="YES">
<BuildableProductRunnable runnableDebuggingMode="0">
<BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="1760DF28253A175000395344" BuildableName="PicovoiceForegroundAppDemo.app" BlueprintName="PicovoiceForegroundAppDemo" ReferencedContainer="container:PicovoiceForegroundAppDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable key="LANGUAGE" value="fa" isEnabled="YES">
</EnvironmentVariable>
<EnvironmentVariable key="WAKEWORD" value="جوجه تیغی" isEnabled="YES">
</EnvironmentVariable>
<EnvironmentVariable key="CONTEXT" value="simple_context_fa" isEnabled="YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction buildConfiguration="Release" shouldUseLaunchSchemeArgsEnv="YES" savedToolIdentifier="" useCustomWorkingDirectory="NO" debugDocumentVersioning="YES">
<BuildableProductRunnable runnableDebuggingMode="0">
<BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="1760DF28253A175000395344" BuildableName="PicovoiceForegroundAppDemo.app" BlueprintName="PicovoiceForegroundAppDemo" ReferencedContainer="container:PicovoiceForegroundAppDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction buildConfiguration="Debug">
</AnalyzeAction>
<ArchiveAction buildConfiguration="Release" revealArchiveInOrganizer="YES">
</ArchiveAction>
</Scheme>
12 changes: 12 additions & 0 deletions resources/.test/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
}
}
},
{
"language": "fa",
"wakeword": "جوجه تیغی",
"context_name": "simple_context_fa",
"audio_file": "porcupine-simple-context_fa.wav",
"inference": {
"intent": "navigation",
"slots": {
"location": "آشپزخانه"
}
}
},
{
"language": "fr",
"wakeword": "mon chouchou",
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/porcupine
Submodule porcupine updated 54 files
+5 −2 .github/workflows/react-demos.yml
+46 −23 binding/web/test/porcupine_perf.test.ts
+45 −0 demo/ios/ForegroundApp/PorcupineForegroundAppDemo.xcodeproj/xcshareddata/xcschemes/faDemo.xcscheme
+5 −0 demo/react-native/.gitignore
+54 −32 demo/react-native/App.tsx
+8 −5 demo/react-native/README.md
+216 −216 demo/react-native/ios/Podfile.lock
+8 −0 demo/react-native/ios/PorcupineDemo.xcodeproj/project.pbxproj
+1 −1 demo/react-native/ios/PorcupineDemo/AppDelegate.m
+8 −6 demo/react-native/package.json
+94 −0 demo/react-native/scripts/prepare_demo.js
+3 −0 demo/react-native/tsconfig.json
+678 −40 demo/react-native/yarn.lock
+5 −1 demo/react/.gitignore
+15 −13 demo/react/README.md
+3 −4 demo/react/package.json
+104 −0 demo/react/scripts/prepare_demo.js
+61 −17 demo/react/src/VoiceWidget.tsx
+0 −0 demo/react/src/lib/.gitkeep
+2 −1 demo/react/tsconfig.json
+ lib/common/porcupine_params_fa.pv
+9 −0 resources/.test/test_data.json
+ resources/audio_samples/multiple_keywords_fa.wav
+ resources/audio_samples/جوجه_تیغی.wav
+ resources/keyword_files_fa/android/جوجه تیغی_android.ppn
+ resources/keyword_files_fa/android/خداحافظ_android.ppn
+ resources/keyword_files_fa/android/صبح بخیر_android.ppn
+ resources/keyword_files_fa/beaglebone/جوجه تیغی_beaglebone.ppn
+ resources/keyword_files_fa/beaglebone/خداحافظ_beaglebone.ppn
+ resources/keyword_files_fa/beaglebone/صبح بخیر_beaglebone.ppn
+ resources/keyword_files_fa/cortexm/جوجه تیغی_cortexm.ppn
+ resources/keyword_files_fa/cortexm/خداحافظ_cortexm.ppn
+ resources/keyword_files_fa/cortexm/صبح بخیر_cortexm.ppn
+ resources/keyword_files_fa/ios/جوجه تیغی_ios.ppn
+ resources/keyword_files_fa/ios/خداحافظ_ios.ppn
+ resources/keyword_files_fa/ios/صبح بخیر_ios.ppn
+ resources/keyword_files_fa/jetson/جوجه تیغی_jetson.ppn
+ resources/keyword_files_fa/jetson/خداحافظ_jetson.ppn
+ resources/keyword_files_fa/jetson/صبح بخیر_jetson.ppn
+ resources/keyword_files_fa/linux/جوجه تیغی_linux.ppn
+ resources/keyword_files_fa/linux/خداحافظ_linux.ppn
+ resources/keyword_files_fa/linux/صبح بخیر_linux.ppn
+ resources/keyword_files_fa/mac/جوجه تیغی_mac.ppn
+ resources/keyword_files_fa/mac/خداحافظ_mac.ppn
+ resources/keyword_files_fa/mac/صبح بخیر_mac.ppn
+ resources/keyword_files_fa/raspberry-pi/جوجه تیغی_raspberry-pi.ppn
+ resources/keyword_files_fa/raspberry-pi/خداحافظ_raspberry-pi.ppn
+ resources/keyword_files_fa/raspberry-pi/صبح بخیر_raspberry-pi.ppn
+ resources/keyword_files_fa/wasm/جوجه تیغی_wasm.ppn
+ resources/keyword_files_fa/wasm/خداحافظ_wasm.ppn
+ resources/keyword_files_fa/wasm/صبح بخیر_wasm.ppn
+ resources/keyword_files_fa/windows/جوجه تیغی_windows.ppn
+ resources/keyword_files_fa/windows/خداحافظ_windows.ppn
+ resources/keyword_files_fa/windows/صبح بخیر_windows.ppn
2 changes: 1 addition & 1 deletion resources/rhino
Submodule rhino updated 76 files
+12 −5 .gitattributes
+1 −1 .github/workflows/nodejs-perf.yml
+6 −4 .github/workflows/web.yml
+2 −0 README.md
+23 −21 binding/flutter/ios/Classes/SwiftRhinoPlugin.swift
+2 −2 binding/ios/Rhino-iOS.podspec
+42 −35 binding/ios/Rhino.swift
+8 −6 binding/ios/RhinoAppTest/PerformanceTest/PerformanceTest.swift
+3 −3 binding/ios/RhinoAppTest/Podfile
+5 −5 binding/ios/RhinoAppTest/Podfile.lock
+4 −1 binding/ios/RhinoAppTest/RhinoAppTest/AppDelegate.swift
+3 −3 binding/ios/RhinoAppTest/RhinoAppTestUITests/BaseTest.swift
+109 −55 binding/ios/RhinoAppTest/RhinoAppTestUITests/RhinoAppTestUITests.swift
+53 −29 binding/ios/RhinoAppTest/RhinoAppTestUITests/RhinoLanguageTests.swift
+15 −15 binding/ios/RhinoErrors.swift
+41 −29 binding/ios/RhinoManager.swift
+10 −9 binding/react-native/ios/Rhino.swift
+1 −0 demo/android/Activity/rhino-activity-demo-app/.gitignore
+8 −0 demo/android/Activity/rhino-activity-demo-app/build.gradle
+0 −0 demo/android/Activity/rhino-activity-demo-app/src/main/assets/.gitkeep
+ demo/android/Activity/rhino-activity-demo-app/src/main/assets/smart_lighting_android.rhn
+7 −7 demo/flutter/ios/Runner/AppDelegate.swift
+3 −0 demo/ios/.gitignore
+1 −1 demo/ios/Podfile
+5 −5 demo/ios/Podfile.lock
+11 −60 demo/ios/README.md
+12 −4 demo/ios/RhinoDemo.xcodeproj/project.pbxproj
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/arDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/deDemo.xcscheme
+118 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/enDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/esDemo.xcscheme
+51 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/faDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/frDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/hiDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/itDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/jaDemo.xcscheme
+32 −2 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/koDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/nlDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/plDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/ptDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/ruDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/svDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/vnDemo.xcscheme
+50 −0 demo/ios/RhinoDemo.xcodeproj/xcshareddata/xcschemes/zhDemo.xcscheme
+19 −9 demo/ios/RhinoDemo/AppDelegate.swift
+132 −76 demo/ios/RhinoDemo/ContentView.swift
+11 −7 demo/ios/RhinoDemo/SceneDelegate.swift
+17 −0 demo/ios/pre-build.sh
+1 −1 demo/java/build.gradle
+3 −3 demo/nodejs/mic.js
+1 −1 demo/nodejs/package.json
+4 −11 demo/nodejs/yarn.lock
+1 −1 demo/python/rhino_demo_mic.py
+1 −1 demo/python/setup.py
+2 −2 demo/web/.gitignore
+9 −36 demo/web/README.md
+6 −8 demo/web/index.html
+2 −4 demo/web/package.json
+92 −0 demo/web/scripts/prepare_demo.js
+0 −5 demo/web/yarn.lock
+ lib/common/rhino_params_fa.pv
+5 −0 resources/.lint/spell-check/dict.txt
+14 −0 resources/.test/test_data.json
+ resources/audio_samples/test_out_of_context_fa.wav
+ resources/audio_samples/test_within_context_fa.wav
+ resources/contexts_fa/android/simple_context_fa_android.rhn
+ resources/contexts_fa/beaglebone/simple_context_fa_beaglebone.rhn
+ resources/contexts_fa/cortexm/simple_context_fa_cortexm.rhn
+ resources/contexts_fa/ios/simple_context_fa_ios.rhn
+ resources/contexts_fa/jetson/simple_context_fa_jetson.rhn
+ resources/contexts_fa/linux/simple_context_fa_linux.rhn
+ resources/contexts_fa/mac/simple_context_fa_mac.rhn
+ resources/contexts_fa/raspberry-pi/simple_context_fa_raspberry-pi.rhn
+ resources/contexts_fa/wasm/simple_context_fa_wasm.rhn
+ resources/contexts_fa/windows/simple_context_fa_windows.rhn
+63 −0 resources/scripts/update_languages.py

0 comments on commit e894706

Please sign in to comment.