@runanywhere/core 0.16.11 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +427 -0
  2. package/RunAnywhereCore.podspec +4 -4
  3. package/cpp/HybridRunAnywhereCore.cpp +10 -4
  4. package/cpp/bridges/TelemetryBridge.cpp +10 -3
  5. package/ios/.testlocal +0 -0
  6. package/nitrogen/generated/shared/c++/HybridRunAnywhereCoreSpec.hpp +1 -1
  7. package/package.json +12 -11
  8. package/src/Features/VoiceSession/AudioCaptureManager.ts +274 -109
  9. package/src/Features/VoiceSession/AudioPlaybackManager.ts +247 -59
  10. package/src/Features/VoiceSession/VoiceSessionHandle.ts +200 -133
  11. package/src/Public/Extensions/RunAnywhere+Audio.ts +688 -0
  12. package/src/Public/Extensions/RunAnywhere+VoiceSession.ts +15 -11
  13. package/src/Public/Extensions/index.ts +25 -0
  14. package/src/Public/RunAnywhere.ts +36 -14
  15. package/android/src/main/include/rac/backends/rac_llm_llamacpp.h +0 -218
  16. package/android/src/main/include/rac/backends/rac_stt_onnx.h +0 -99
  17. package/android/src/main/include/rac/backends/rac_stt_whispercpp.h +0 -153
  18. package/android/src/main/include/rac/backends/rac_tts_onnx.h +0 -71
  19. package/android/src/main/include/rac/backends/rac_vad_onnx.h +0 -84
  20. package/android/src/main/include/rac/core/capabilities/rac_lifecycle.h +0 -290
  21. package/android/src/main/include/rac/core/rac_analytics_events.h +0 -610
  22. package/android/src/main/include/rac/core/rac_audio_utils.h +0 -88
  23. package/android/src/main/include/rac/core/rac_component_types.h +0 -160
  24. package/android/src/main/include/rac/core/rac_core.h +0 -331
  25. package/android/src/main/include/rac/core/rac_error.h +0 -469
  26. package/android/src/main/include/rac/core/rac_events.h +0 -334
  27. package/android/src/main/include/rac/core/rac_logger.h +0 -416
  28. package/android/src/main/include/rac/core/rac_platform_adapter.h +0 -340
  29. package/android/src/main/include/rac/core/rac_sdk_state.h +0 -292
  30. package/android/src/main/include/rac/core/rac_structured_error.h +0 -594
  31. package/android/src/main/include/rac/core/rac_types.h +0 -264
  32. package/android/src/main/include/rac/features/llm/rac_llm.h +0 -17
  33. package/android/src/main/include/rac/features/llm/rac_llm_analytics.h +0 -188
  34. package/android/src/main/include/rac/features/llm/rac_llm_component.h +0 -228
  35. package/android/src/main/include/rac/features/llm/rac_llm_events.h +0 -215
  36. package/android/src/main/include/rac/features/llm/rac_llm_metrics.h +0 -402
  37. package/android/src/main/include/rac/features/llm/rac_llm_service.h +0 -163
  38. package/android/src/main/include/rac/features/llm/rac_llm_structured_output.h +0 -141
  39. package/android/src/main/include/rac/features/llm/rac_llm_types.h +0 -384
  40. package/android/src/main/include/rac/features/platform/rac_llm_platform.h +0 -204
  41. package/android/src/main/include/rac/features/platform/rac_tts_platform.h +0 -197
  42. package/android/src/main/include/rac/features/stt/rac_stt.h +0 -17
  43. package/android/src/main/include/rac/features/stt/rac_stt_analytics.h +0 -204
  44. package/android/src/main/include/rac/features/stt/rac_stt_component.h +0 -162
  45. package/android/src/main/include/rac/features/stt/rac_stt_events.h +0 -62
  46. package/android/src/main/include/rac/features/stt/rac_stt_service.h +0 -154
  47. package/android/src/main/include/rac/features/stt/rac_stt_types.h +0 -389
  48. package/android/src/main/include/rac/features/tts/rac_tts.h +0 -17
  49. package/android/src/main/include/rac/features/tts/rac_tts_analytics.h +0 -181
  50. package/android/src/main/include/rac/features/tts/rac_tts_component.h +0 -158
  51. package/android/src/main/include/rac/features/tts/rac_tts_events.h +0 -54
  52. package/android/src/main/include/rac/features/tts/rac_tts_service.h +0 -162
  53. package/android/src/main/include/rac/features/tts/rac_tts_types.h +0 -374
  54. package/android/src/main/include/rac/features/vad/rac_vad.h +0 -17
  55. package/android/src/main/include/rac/features/vad/rac_vad_analytics.h +0 -236
  56. package/android/src/main/include/rac/features/vad/rac_vad_component.h +0 -185
  57. package/android/src/main/include/rac/features/vad/rac_vad_energy.h +0 -443
  58. package/android/src/main/include/rac/features/vad/rac_vad_events.h +0 -76
  59. package/android/src/main/include/rac/features/vad/rac_vad_service.h +0 -167
  60. package/android/src/main/include/rac/features/vad/rac_vad_types.h +0 -244
  61. package/android/src/main/include/rac/features/voice_agent/rac_voice_agent.h +0 -612
  62. package/android/src/main/include/rac/infrastructure/device/rac_device_manager.h +0 -176
  63. package/android/src/main/include/rac/infrastructure/download/rac_download.h +0 -418
  64. package/android/src/main/include/rac/infrastructure/events/rac_events.h +0 -177
  65. package/android/src/main/include/rac/infrastructure/model_management/rac_model_assignment.h +0 -169
  66. package/android/src/main/include/rac/infrastructure/model_management/rac_model_paths.h +0 -258
  67. package/android/src/main/include/rac/infrastructure/model_management/rac_model_registry.h +0 -357
  68. package/android/src/main/include/rac/infrastructure/model_management/rac_model_strategy.h +0 -374
  69. package/android/src/main/include/rac/infrastructure/model_management/rac_model_types.h +0 -613
  70. package/android/src/main/include/rac/infrastructure/network/rac_api_types.h +0 -335
  71. package/android/src/main/include/rac/infrastructure/network/rac_auth_manager.h +0 -252
  72. package/android/src/main/include/rac/infrastructure/network/rac_dev_config.h +0 -85
  73. package/android/src/main/include/rac/infrastructure/network/rac_endpoints.h +0 -102
  74. package/android/src/main/include/rac/infrastructure/network/rac_environment.h +0 -220
  75. package/android/src/main/include/rac/infrastructure/network/rac_http_client.h +0 -233
  76. package/android/src/main/include/rac/infrastructure/storage/rac_storage_analyzer.h +0 -286
  77. package/android/src/main/include/rac/infrastructure/telemetry/rac_telemetry_manager.h +0 -206
  78. package/android/src/main/include/rac/infrastructure/telemetry/rac_telemetry_types.h +0 -234
  79. package/android/src/main/jniLibs/arm64-v8a/libc++_shared.so +0 -0
  80. package/android/src/main/jniLibs/arm64-v8a/libomp.so +0 -0
  81. package/android/src/main/jniLibs/arm64-v8a/librac_commons.so +0 -0
  82. package/android/src/main/jniLibs/arm64-v8a/librunanywhere_jni.so +0 -0
  83. package/ios/Frameworks/RACommons.xcframework/Info.plist +0 -44
  84. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/RACommons.h +0 -67
  85. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_analytics_events.h +0 -610
  86. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_api_types.h +0 -335
  87. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_audio_utils.h +0 -88
  88. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_auth_manager.h +0 -252
  89. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_component_types.h +0 -160
  90. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_core.h +0 -331
  91. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_dev_config.h +0 -85
  92. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_device_manager.h +0 -176
  93. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_download.h +0 -418
  94. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_endpoints.h +0 -102
  95. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_environment.h +0 -220
  96. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_error.h +0 -469
  97. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_events.h +0 -177
  98. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_http_client.h +0 -233
  99. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_lifecycle.h +0 -290
  100. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm.h +0 -17
  101. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_analytics.h +0 -188
  102. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_component.h +0 -228
  103. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_events.h +0 -215
  104. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_llamacpp.h +0 -218
  105. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_metrics.h +0 -402
  106. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_platform.h +0 -204
  107. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_service.h +0 -163
  108. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_structured_output.h +0 -141
  109. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_types.h +0 -384
  110. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_logger.h +0 -416
  111. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_assignment.h +0 -169
  112. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_paths.h +0 -258
  113. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_registry.h +0 -357
  114. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_strategy.h +0 -374
  115. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_types.h +0 -613
  116. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_platform_adapter.h +0 -340
  117. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_sdk_state.h +0 -292
  118. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_storage_analyzer.h +0 -286
  119. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_structured_error.h +0 -594
  120. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt.h +0 -17
  121. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_analytics.h +0 -204
  122. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_component.h +0 -162
  123. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_events.h +0 -62
  124. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_onnx.h +0 -99
  125. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_service.h +0 -154
  126. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_types.h +0 -389
  127. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_whispercpp.h +0 -153
  128. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_telemetry_manager.h +0 -206
  129. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_telemetry_types.h +0 -234
  130. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts.h +0 -17
  131. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_analytics.h +0 -181
  132. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_component.h +0 -158
  133. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_events.h +0 -54
  134. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_onnx.h +0 -71
  135. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_platform.h +0 -197
  136. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_service.h +0 -162
  137. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_types.h +0 -374
  138. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_types.h +0 -264
  139. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad.h +0 -17
  140. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_analytics.h +0 -236
  141. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_component.h +0 -185
  142. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_energy.h +0 -443
  143. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_events.h +0 -76
  144. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_onnx.h +0 -84
  145. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_service.h +0 -167
  146. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_types.h +0 -244
  147. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_voice_agent.h +0 -612
  148. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Info.plist +0 -11
  149. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Modules/module.modulemap +0 -5
  150. package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/RACommons +0 -0
  151. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/RACommons.h +0 -67
  152. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_analytics_events.h +0 -610
  153. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_api_types.h +0 -335
  154. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_audio_utils.h +0 -88
  155. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_auth_manager.h +0 -252
  156. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_component_types.h +0 -160
  157. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_core.h +0 -331
  158. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_dev_config.h +0 -85
  159. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_device_manager.h +0 -176
  160. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_download.h +0 -418
  161. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_endpoints.h +0 -102
  162. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_environment.h +0 -220
  163. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_error.h +0 -469
  164. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_events.h +0 -177
  165. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_http_client.h +0 -233
  166. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_lifecycle.h +0 -290
  167. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm.h +0 -17
  168. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_analytics.h +0 -188
  169. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_component.h +0 -228
  170. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_events.h +0 -215
  171. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_llamacpp.h +0 -218
  172. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_metrics.h +0 -402
  173. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_platform.h +0 -204
  174. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_service.h +0 -163
  175. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_structured_output.h +0 -141
  176. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_types.h +0 -384
  177. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_logger.h +0 -416
  178. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_assignment.h +0 -169
  179. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_paths.h +0 -258
  180. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_registry.h +0 -357
  181. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_strategy.h +0 -374
  182. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_types.h +0 -613
  183. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_platform_adapter.h +0 -340
  184. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_sdk_state.h +0 -292
  185. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_storage_analyzer.h +0 -286
  186. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_structured_error.h +0 -594
  187. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt.h +0 -17
  188. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_analytics.h +0 -204
  189. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_component.h +0 -162
  190. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_events.h +0 -62
  191. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_onnx.h +0 -99
  192. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_service.h +0 -154
  193. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_types.h +0 -389
  194. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_whispercpp.h +0 -153
  195. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_telemetry_manager.h +0 -206
  196. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_telemetry_types.h +0 -234
  197. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts.h +0 -17
  198. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_analytics.h +0 -181
  199. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_component.h +0 -158
  200. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_events.h +0 -54
  201. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_onnx.h +0 -71
  202. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_platform.h +0 -197
  203. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_service.h +0 -162
  204. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_types.h +0 -374
  205. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_types.h +0 -264
  206. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad.h +0 -17
  207. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_analytics.h +0 -236
  208. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_component.h +0 -185
  209. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_energy.h +0 -443
  210. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_events.h +0 -76
  211. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_onnx.h +0 -84
  212. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_service.h +0 -167
  213. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_types.h +0 -244
  214. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_voice_agent.h +0 -612
  215. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Info.plist +0 -11
  216. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Modules/module.modulemap +0 -5
  217. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/RACommons +0 -0
@@ -1,389 +0,0 @@
1
- /**
2
- * @file rac_stt_types.h
3
- * @brief RunAnywhere Commons - STT Types and Data Structures
4
- *
5
- * C port of Swift's STT Models from:
6
- * Sources/RunAnywhere/Features/STT/Models/STTConfiguration.swift
7
- * Sources/RunAnywhere/Features/STT/Models/STTOptions.swift
8
- * Sources/RunAnywhere/Features/STT/Models/STTInput.swift
9
- * Sources/RunAnywhere/Features/STT/Models/STTOutput.swift
10
- * Sources/RunAnywhere/Features/STT/Models/STTTranscriptionResult.swift
11
- *
12
- * This header defines data structures only. For the service interface,
13
- * see rac_stt_service.h.
14
- */
15
-
16
- #ifndef RAC_STT_TYPES_H
17
- #define RAC_STT_TYPES_H
18
-
19
- #include <RACommons/rac_types.h>
20
-
21
- #ifdef __cplusplus
22
- extern "C" {
23
- #endif
24
-
25
- // =============================================================================
26
- // CONSTANTS - Single Source of Truth for STT
27
- // Swift references these via CRACommons import
28
- // =============================================================================
29
-
30
- // Audio Format Constants
31
- #define RAC_STT_DEFAULT_SAMPLE_RATE 16000
32
- #define RAC_STT_MAX_SAMPLE_RATE 48000
33
- #define RAC_STT_MIN_SAMPLE_RATE 8000
34
- #define RAC_STT_BYTES_PER_SAMPLE 2
35
- #define RAC_STT_CHANNELS 1
36
-
37
- // Confidence Scores
38
- #define RAC_STT_DEFAULT_CONFIDENCE 0.9f
39
- #define RAC_STT_MIN_ACCEPTABLE_CONFIDENCE 0.5f
40
-
41
- // Streaming Constants
42
- #define RAC_STT_DEFAULT_STREAMING_CHUNK_MS 100
43
- #define RAC_STT_MIN_STREAMING_CHUNK_MS 50
44
- #define RAC_STT_MAX_STREAMING_CHUNK_MS 1000
45
-
46
- // Language
47
- #define RAC_STT_DEFAULT_LANGUAGE "en"
48
-
49
- // =============================================================================
50
- // AUDIO FORMAT - Mirrors Swift's AudioFormat
51
- // =============================================================================
52
-
53
- /**
54
- * @brief Audio format enumeration
55
- * Mirrors Swift's AudioFormat from AudioTypes.swift
56
- */
57
- typedef enum rac_audio_format_enum {
58
- RAC_AUDIO_FORMAT_PCM = 0,
59
- RAC_AUDIO_FORMAT_WAV = 1,
60
- RAC_AUDIO_FORMAT_MP3 = 2,
61
- RAC_AUDIO_FORMAT_OPUS = 3,
62
- RAC_AUDIO_FORMAT_AAC = 4,
63
- RAC_AUDIO_FORMAT_FLAC = 5
64
- } rac_audio_format_enum_t;
65
-
66
- // =============================================================================
67
- // CONFIGURATION - Mirrors Swift's STTConfiguration
68
- // =============================================================================
69
-
70
- /**
71
- * @brief STT component configuration
72
- *
73
- * Mirrors Swift's STTConfiguration struct exactly.
74
- * See: Sources/RunAnywhere/Features/STT/Models/STTConfiguration.swift
75
- */
76
- typedef struct rac_stt_config {
77
- /** Model ID (optional - uses default if NULL) */
78
- const char* model_id;
79
-
80
- /** Preferred framework for transcription (use -1 for auto) */
81
- int32_t preferred_framework;
82
-
83
- /** Language code for transcription (e.g., "en-US") */
84
- const char* language;
85
-
86
- /** Sample rate in Hz (default: 16000) */
87
- int32_t sample_rate;
88
-
89
- /** Enable automatic punctuation in transcription */
90
- rac_bool_t enable_punctuation;
91
-
92
- /** Enable speaker diarization */
93
- rac_bool_t enable_diarization;
94
-
95
- /** Vocabulary list for improved recognition (NULL-terminated array, can be NULL) */
96
- const char* const* vocabulary_list;
97
- size_t num_vocabulary;
98
-
99
- /** Maximum number of alternative transcriptions (default: 1) */
100
- int32_t max_alternatives;
101
-
102
- /** Enable word-level timestamps */
103
- rac_bool_t enable_timestamps;
104
- } rac_stt_config_t;
105
-
106
- /**
107
- * @brief Default STT configuration
108
- */
109
- static const rac_stt_config_t RAC_STT_CONFIG_DEFAULT = {.model_id = RAC_NULL,
110
- .preferred_framework = -1,
111
- .language = "en-US",
112
- .sample_rate = RAC_STT_DEFAULT_SAMPLE_RATE,
113
- .enable_punctuation = RAC_TRUE,
114
- .enable_diarization = RAC_FALSE,
115
- .vocabulary_list = RAC_NULL,
116
- .num_vocabulary = 0,
117
- .max_alternatives = 1,
118
- .enable_timestamps = RAC_TRUE};
119
-
120
- // =============================================================================
121
- // OPTIONS - Mirrors Swift's STTOptions
122
- // =============================================================================
123
-
124
- /**
125
- * @brief STT transcription options
126
- *
127
- * Mirrors Swift's STTOptions struct.
128
- * See: Sources/RunAnywhere/Features/STT/Models/STTOptions.swift
129
- */
130
- typedef struct rac_stt_options {
131
- /** Language code for transcription (e.g., "en", "es", "fr") */
132
- const char* language;
133
-
134
- /** Whether to auto-detect the spoken language */
135
- rac_bool_t detect_language;
136
-
137
- /** Enable automatic punctuation in transcription */
138
- rac_bool_t enable_punctuation;
139
-
140
- /** Enable speaker diarization */
141
- rac_bool_t enable_diarization;
142
-
143
- /** Maximum number of speakers (0 = auto) */
144
- int32_t max_speakers;
145
-
146
- /** Enable word-level timestamps */
147
- rac_bool_t enable_timestamps;
148
-
149
- /** Audio format of input data */
150
- rac_audio_format_enum_t audio_format;
151
-
152
- /** Sample rate of input audio (default: 16000 Hz) */
153
- int32_t sample_rate;
154
- } rac_stt_options_t;
155
-
156
- /**
157
- * @brief Default STT options
158
- */
159
- static const rac_stt_options_t RAC_STT_OPTIONS_DEFAULT = {.language = "en",
160
- .detect_language = RAC_FALSE,
161
- .enable_punctuation = RAC_TRUE,
162
- .enable_diarization = RAC_FALSE,
163
- .max_speakers = 0,
164
- .enable_timestamps = RAC_TRUE,
165
- .audio_format = RAC_AUDIO_FORMAT_PCM,
166
- .sample_rate = 16000};
167
-
168
- // =============================================================================
169
- // RESULT - Mirrors Swift's STTTranscriptionResult
170
- // =============================================================================
171
-
172
- /**
173
- * @brief Word timestamp information
174
- */
175
- typedef struct rac_stt_word {
176
- /** The word text */
177
- const char* text;
178
- /** Start time in milliseconds */
179
- int64_t start_ms;
180
- /** End time in milliseconds */
181
- int64_t end_ms;
182
- /** Confidence score (0.0 to 1.0) */
183
- float confidence;
184
- } rac_stt_word_t;
185
-
186
- /**
187
- * @brief STT transcription result
188
- *
189
- * Mirrors Swift's STTTranscriptionResult struct.
190
- */
191
- typedef struct rac_stt_result {
192
- /** Full transcribed text (owned, must be freed with rac_free) */
193
- char* text;
194
-
195
- /** Detected language code (can be NULL) */
196
- char* detected_language;
197
-
198
- /** Word-level timestamps (can be NULL) */
199
- rac_stt_word_t* words;
200
- size_t num_words;
201
-
202
- /** Overall confidence score (0.0 to 1.0) */
203
- float confidence;
204
-
205
- /** Processing time in milliseconds */
206
- int64_t processing_time_ms;
207
- } rac_stt_result_t;
208
-
209
- // =============================================================================
210
- // INFO - Mirrors Swift's STTService properties
211
- // =============================================================================
212
-
213
- /**
214
- * @brief STT service info
215
- */
216
- typedef struct rac_stt_info {
217
- /** Whether the service is ready */
218
- rac_bool_t is_ready;
219
-
220
- /** Current model identifier (can be NULL) */
221
- const char* current_model;
222
-
223
- /** Whether streaming is supported */
224
- rac_bool_t supports_streaming;
225
- } rac_stt_info_t;
226
-
227
- // =============================================================================
228
- // CALLBACKS
229
- // =============================================================================
230
-
231
- /**
232
- * @brief STT streaming callback
233
- *
234
- * Called for partial transcription results during streaming.
235
- *
236
- * @param partial_text Partial transcription text
237
- * @param is_final Whether this is a final result
238
- * @param user_data User-provided context
239
- */
240
- typedef void (*rac_stt_stream_callback_t)(const char* partial_text, rac_bool_t is_final,
241
- void* user_data);
242
-
243
- // =============================================================================
244
- // INPUT - Mirrors Swift's STTInput
245
- // =============================================================================
246
-
247
- /**
248
- * @brief STT input data
249
- *
250
- * Mirrors Swift's STTInput struct.
251
- * See: Sources/RunAnywhere/Features/STT/Models/STTInput.swift
252
- */
253
- typedef struct rac_stt_input {
254
- /** Audio data bytes (raw audio data) */
255
- const uint8_t* audio_data;
256
- size_t audio_data_size;
257
-
258
- /** Alternative: audio buffer (PCM float samples) */
259
- const float* audio_samples;
260
- size_t num_samples;
261
-
262
- /** Audio format of input data */
263
- rac_audio_format_enum_t format;
264
-
265
- /** Language code override (can be NULL to use config default) */
266
- const char* language;
267
-
268
- /** Sample rate of the audio (default: 16000) */
269
- int32_t sample_rate;
270
-
271
- /** Custom options override (can be NULL) */
272
- const rac_stt_options_t* options;
273
- } rac_stt_input_t;
274
-
275
- /**
276
- * @brief Default STT input
277
- */
278
- static const rac_stt_input_t RAC_STT_INPUT_DEFAULT = {.audio_data = RAC_NULL,
279
- .audio_data_size = 0,
280
- .audio_samples = RAC_NULL,
281
- .num_samples = 0,
282
- .format = RAC_AUDIO_FORMAT_PCM,
283
- .language = RAC_NULL,
284
- .sample_rate = RAC_STT_DEFAULT_SAMPLE_RATE,
285
- .options = RAC_NULL};
286
-
287
- // =============================================================================
288
- // TRANSCRIPTION METADATA - Mirrors Swift's TranscriptionMetadata
289
- // =============================================================================
290
-
291
- /**
292
- * @brief Transcription metadata
293
- *
294
- * Mirrors Swift's TranscriptionMetadata struct.
295
- * See: Sources/RunAnywhere/Features/STT/Models/STTOutput.swift
296
- */
297
- typedef struct rac_transcription_metadata {
298
- /** Model ID used for transcription */
299
- const char* model_id;
300
-
301
- /** Processing time in milliseconds */
302
- int64_t processing_time_ms;
303
-
304
- /** Audio length in milliseconds */
305
- int64_t audio_length_ms;
306
-
307
- /** Real-time factor (processing_time / audio_length) */
308
- float real_time_factor;
309
- } rac_transcription_metadata_t;
310
-
311
- // =============================================================================
312
- // TRANSCRIPTION ALTERNATIVE - Mirrors Swift's TranscriptionAlternative
313
- // =============================================================================
314
-
315
- /**
316
- * @brief Alternative transcription
317
- *
318
- * Mirrors Swift's TranscriptionAlternative struct.
319
- */
320
- typedef struct rac_transcription_alternative {
321
- /** Alternative transcription text */
322
- const char* text;
323
-
324
- /** Confidence score (0.0 to 1.0) */
325
- float confidence;
326
- } rac_transcription_alternative_t;
327
-
328
- // =============================================================================
329
- // OUTPUT - Mirrors Swift's STTOutput
330
- // =============================================================================
331
-
332
- /**
333
- * @brief STT output data
334
- *
335
- * Mirrors Swift's STTOutput struct.
336
- * See: Sources/RunAnywhere/Features/STT/Models/STTOutput.swift
337
- */
338
- typedef struct rac_stt_output {
339
- /** Transcribed text (owned, must be freed with rac_free) */
340
- char* text;
341
-
342
- /** Confidence score (0.0 to 1.0) */
343
- float confidence;
344
-
345
- /** Word-level timestamps (can be NULL) */
346
- rac_stt_word_t* word_timestamps;
347
- size_t num_word_timestamps;
348
-
349
- /** Detected language if auto-detected (can be NULL) */
350
- char* detected_language;
351
-
352
- /** Alternative transcriptions (can be NULL) */
353
- rac_transcription_alternative_t* alternatives;
354
- size_t num_alternatives;
355
-
356
- /** Processing metadata */
357
- rac_transcription_metadata_t metadata;
358
-
359
- /** Timestamp in milliseconds since epoch */
360
- int64_t timestamp_ms;
361
- } rac_stt_output_t;
362
-
363
- // =============================================================================
364
- // TRANSCRIPTION RESULT - Alias for compatibility
365
- // =============================================================================
366
-
367
- /**
368
- * @brief STT transcription result (alias for rac_stt_output_t)
369
- *
370
- * For compatibility with existing code that uses "result" terminology.
371
- */
372
- typedef rac_stt_output_t rac_stt_transcription_result_t;
373
-
374
- // =============================================================================
375
- // MEMORY MANAGEMENT
376
- // =============================================================================
377
-
378
- /**
379
- * @brief Free STT result resources
380
- *
381
- * @param result Result to free (can be NULL)
382
- */
383
- RAC_API void rac_stt_result_free(rac_stt_result_t* result);
384
-
385
- #ifdef __cplusplus
386
- }
387
- #endif
388
-
389
- #endif /* RAC_STT_TYPES_H */
@@ -1,153 +0,0 @@
1
- /**
2
- * @file rac_stt_whispercpp.h
3
- * @brief RunAnywhere Core - WhisperCPP Backend for STT
4
- *
5
- * RAC API for WhisperCPP-based speech-to-text.
6
- * Provides high-quality transcription using whisper.cpp.
7
- *
8
- * NOTE: WhisperCPP and LlamaCPP both use GGML, which can cause symbol
9
- * conflicts if linked together. Use ONNX Whisper for STT when also
10
- * using LlamaCPP for LLM, or build with symbol prefixing.
11
- */
12
-
13
- #ifndef RAC_STT_WHISPERCPP_H
14
- #define RAC_STT_WHISPERCPP_H
15
-
16
- #include <RACommons/rac_error.h>
17
- #include <RACommons/rac_types.h>
18
- #include <RACommons/rac_stt.h>
19
-
20
- #ifdef __cplusplus
21
- extern "C" {
22
- #endif
23
-
24
- // =============================================================================
25
- // EXPORT MACRO
26
- // =============================================================================
27
-
28
- #if defined(RAC_WHISPERCPP_BUILDING)
29
- #if defined(_WIN32)
30
- #define RAC_WHISPERCPP_API __declspec(dllexport)
31
- #elif defined(__GNUC__) || defined(__clang__)
32
- #define RAC_WHISPERCPP_API __attribute__((visibility("default")))
33
- #else
34
- #define RAC_WHISPERCPP_API
35
- #endif
36
- #else
37
- #define RAC_WHISPERCPP_API
38
- #endif
39
-
40
- // =============================================================================
41
- // CONFIGURATION
42
- // =============================================================================
43
-
44
- /**
45
- * WhisperCPP-specific configuration.
46
- */
47
- typedef struct rac_stt_whispercpp_config {
48
- /** Number of threads (0 = auto) */
49
- int32_t num_threads;
50
-
51
- /** Enable GPU acceleration (Metal on Apple) */
52
- rac_bool_t use_gpu;
53
-
54
- /** Enable CoreML acceleration (Apple only) */
55
- rac_bool_t use_coreml;
56
-
57
- /** Language code for transcription (NULL = auto-detect) */
58
- const char* language;
59
-
60
- /** Translate to English (when source is non-English) */
61
- rac_bool_t translate;
62
- } rac_stt_whispercpp_config_t;
63
-
64
- /**
65
- * Default WhisperCPP configuration.
66
- */
67
- static const rac_stt_whispercpp_config_t RAC_STT_WHISPERCPP_CONFIG_DEFAULT = {
68
- .num_threads = 0,
69
- .use_gpu = RAC_TRUE,
70
- .use_coreml = RAC_TRUE,
71
- .language = NULL,
72
- .translate = RAC_FALSE};
73
-
74
- // =============================================================================
75
- // WHISPERCPP STT API
76
- // =============================================================================
77
-
78
- /**
79
- * Creates a WhisperCPP STT service.
80
- *
81
- * @param model_path Path to the Whisper GGML model file (.bin)
82
- * @param config WhisperCPP-specific configuration (can be NULL for defaults)
83
- * @param out_handle Output: Handle to the created service
84
- * @return RAC_SUCCESS or error code
85
- */
86
- RAC_WHISPERCPP_API rac_result_t rac_stt_whispercpp_create(const char* model_path,
87
- const rac_stt_whispercpp_config_t* config,
88
- rac_handle_t* out_handle);
89
-
90
- /**
91
- * Transcribes audio data.
92
- *
93
- * @param handle Service handle
94
- * @param audio_samples Float32 PCM samples (16kHz mono)
95
- * @param num_samples Number of samples
96
- * @param options STT options (can be NULL for defaults)
97
- * @param out_result Output: Transcription result
98
- * @return RAC_SUCCESS or error code
99
- */
100
- RAC_WHISPERCPP_API rac_result_t rac_stt_whispercpp_transcribe(rac_handle_t handle,
101
- const float* audio_samples,
102
- size_t num_samples,
103
- const rac_stt_options_t* options,
104
- rac_stt_result_t* out_result);
105
-
106
- /**
107
- * Gets detected language after transcription.
108
- *
109
- * @param handle Service handle
110
- * @param out_language Output: Language code (caller must free)
111
- * @return RAC_SUCCESS or error code
112
- */
113
- RAC_WHISPERCPP_API rac_result_t rac_stt_whispercpp_get_language(rac_handle_t handle,
114
- char** out_language);
115
-
116
- /**
117
- * Checks if model is loaded and ready.
118
- *
119
- * @param handle Service handle
120
- * @return RAC_TRUE if ready
121
- */
122
- RAC_WHISPERCPP_API rac_bool_t rac_stt_whispercpp_is_ready(rac_handle_t handle);
123
-
124
- /**
125
- * Destroys a WhisperCPP STT service.
126
- *
127
- * @param handle Service handle to destroy
128
- */
129
- RAC_WHISPERCPP_API void rac_stt_whispercpp_destroy(rac_handle_t handle);
130
-
131
- // =============================================================================
132
- // BACKEND REGISTRATION
133
- // =============================================================================
134
-
135
- /**
136
- * Registers the WhisperCPP backend with the commons module and service registries.
137
- *
138
- * @return RAC_SUCCESS or error code
139
- */
140
- RAC_WHISPERCPP_API rac_result_t rac_backend_whispercpp_register(void);
141
-
142
- /**
143
- * Unregisters the WhisperCPP backend.
144
- *
145
- * @return RAC_SUCCESS or error code
146
- */
147
- RAC_WHISPERCPP_API rac_result_t rac_backend_whispercpp_unregister(void);
148
-
149
- #ifdef __cplusplus
150
- }
151
- #endif
152
-
153
- #endif /* RAC_STT_WHISPERCPP_H */