react-native-wakeword 1.1.117 → 1.1.118
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.
- package/package.json +1 -1
- package/wakewords/useModel.tsx +2 -2
package/package.json
CHANGED
package/wakewords/useModel.tsx
CHANGED
|
@@ -33,11 +33,11 @@ var instanceConfigs:instanceConfig[] = [
|
|
|
33
33
|
];
|
|
34
34
|
|
|
35
35
|
// Helper function to format the ONNX file name
|
|
36
|
-
const formatWakeWord = (fileName) => {
|
|
36
|
+
const formatWakeWord = (fileName: string) => {
|
|
37
37
|
return fileName
|
|
38
38
|
.replace(/_/g, ' ') // Use global flag to replace all underscores
|
|
39
39
|
.replace('.onnx', '')
|
|
40
|
-
.replace(/\b\w/g, (char) => char.toUpperCase()); // Capitalize each word
|
|
40
|
+
.replace(/\b\w/g, (char: string) => char.toUpperCase()); // Capitalize each word};
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
// Function to add a new instance dynamically
|