@picovoice/orca-node
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -49,2 +49,3 @@ // | ||
SYSTEM_TO_LIBRARY_PATH.set(`${SYSTEM_WINDOWS}/${X86_64}`, `${PLATFORM_WINDOWS}/amd64/pv_orca.node`); | ||
SYSTEM_TO_LIBRARY_PATH.set(`${SYSTEM_WINDOWS}/${ARM_64}`, `${PLATFORM_WINDOWS}/arm64/pv_orca.node`); | ||
function absoluteLibraryPath(libraryPath) { | ||
@@ -97,3 +98,3 @@ return path.resolve(__dirname, LIBRARY_PATH_PREFIX, libraryPath); | ||
} | ||
if (system === SYSTEM_WINDOWS && arch === X86_64) { | ||
if (system === SYSTEM_WINDOWS && (arch === X86_64 || arch === ARM_64)) { | ||
return PLATFORM_WINDOWS; | ||
@@ -138,4 +139,4 @@ } | ||
case SYSTEM_WINDOWS: { | ||
if (arch === X86_64) { | ||
return absoluteLibraryPath(SYSTEM_TO_LIBRARY_PATH.get(`${SYSTEM_WINDOWS}/${X86_64}`)); | ||
if (arch === X86_64 || arch === ARM_64) { | ||
return absoluteLibraryPath(SYSTEM_TO_LIBRARY_PATH.get(`${SYSTEM_WINDOWS}/${arch}`)); | ||
} | ||
@@ -142,0 +143,0 @@ break; |
{ | ||
"name": "@picovoice/orca-node", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Picovoice Orca Node.js binding", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -10,5 +10,5 @@ # Orca Binding for Node.js | ||
- Private; All voice processing runs locally. | ||
- Private; All speech synthesis runs locally. | ||
- Cross-Platform: | ||
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64) | ||
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64, arm64) | ||
- Android and iOS | ||
@@ -21,3 +21,3 @@ - Chrome, Safari, Firefox, and Edge | ||
- Node.js 16+ | ||
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). | ||
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5). | ||
@@ -110,5 +110,4 @@ ## Installation | ||
Orca accepts the 26 lowercase (a-z) and 26 uppercase (A-Z) letters of the English alphabet, numbers, | ||
basic symbols, as well as common punctuation marks. You can get a list of all supported characters by calling | ||
`validCharacters()`. | ||
Orca supports a wide range of English characters, including letters, numbers, symbols, and punctuation marks. | ||
You can get a list of all supported characters by calling `validCharacters()`. | ||
Pronunciations of characters or words not supported by this list can be achieved with | ||
@@ -115,0 +114,0 @@ [custom pronunciations](#custom-pronunciations). |
@@ -85,2 +85,6 @@ // | ||
); | ||
SYSTEM_TO_LIBRARY_PATH.set( | ||
`${SYSTEM_WINDOWS}/${ARM_64}`, | ||
`${PLATFORM_WINDOWS}/arm64/pv_orca.node`, | ||
); | ||
@@ -141,3 +145,3 @@ function absoluteLibraryPath(libraryPath: string): string { | ||
if (system === SYSTEM_WINDOWS && arch === X86_64) { | ||
if (system === SYSTEM_WINDOWS && (arch === X86_64 || arch === ARM_64)) { | ||
return PLATFORM_WINDOWS; | ||
@@ -193,5 +197,5 @@ } | ||
case SYSTEM_WINDOWS: { | ||
if (arch === X86_64) { | ||
if (arch === X86_64 || arch === ARM_64) { | ||
return absoluteLibraryPath( | ||
SYSTEM_TO_LIBRARY_PATH.get(`${SYSTEM_WINDOWS}/${X86_64}`), | ||
SYSTEM_TO_LIBRARY_PATH.get(`${SYSTEM_WINDOWS}/${arch}`), | ||
); | ||
@@ -198,0 +202,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22554022
2562
185
10