pvleopard 2.0.2__py3-none-any.whl → 2.0.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pvleopard/_util.py CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2022-2023 Picovoice Inc.
2
+ # Copyright 2022-2024 Picovoice Inc.
3
3
  #
4
4
  # You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
5
5
  # file accompanying this source.
@@ -37,8 +37,6 @@ def _linux_machine():
37
37
 
38
38
  if '0xd03' == cpu_part:
39
39
  return 'cortex-a53' + arch_info
40
- elif '0xd07' == cpu_part:
41
- return 'cortex-a57' + arch_info
42
40
  elif '0xd08' == cpu_part:
43
41
  return 'cortex-a72' + arch_info
44
42
  elif "0xd0b" == cpu_part:
@@ -54,7 +52,6 @@ _RASPBERRY_PI_MACHINES = {
54
52
  "cortex-a53-aarch64",
55
53
  "cortex-a72-aarch64",
56
54
  "cortex-a76-aarch64"}
57
- _JETSON_MACHINES = {'cortex-a57-aarch64'}
58
55
 
59
56
 
60
57
  def default_library_path(relative):
@@ -67,15 +64,16 @@ def default_library_path(relative):
67
64
  linux_machine = _linux_machine()
68
65
  if linux_machine == 'x86_64':
69
66
  return os.path.join(os.path.dirname(__file__), relative, 'lib/linux/x86_64/libpv_leopard.so')
70
- elif linux_machine in _JETSON_MACHINES:
71
- return os.path.join(os.path.dirname(__file__), relative, 'lib/jetson/%s/libpv_leopard.so' % linux_machine)
72
67
  elif linux_machine in _RASPBERRY_PI_MACHINES:
73
68
  return os.path.join(
74
69
  os.path.dirname(__file__),
75
70
  relative,
76
71
  'lib/raspberry-pi/%s/libpv_leopard.so' % linux_machine)
77
72
  elif platform.system() == 'Windows':
78
- return os.path.join(os.path.dirname(__file__), relative, 'lib/windows/amd64/libpv_leopard.dll')
73
+ if platform.machine().lower() == 'amd64':
74
+ return os.path.join(os.path.dirname(__file__), relative, 'lib/windows/amd64/libpv_leopard.dll')
75
+ elif platform.machine().lower() == 'arm64':
76
+ return os.path.join(os.path.dirname(__file__), relative, 'lib/windows/arm64/libpv_leopard.dll')
79
77
 
80
78
  raise NotImplementedError('Unsupported platform.')
81
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pvleopard
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: Leopard Speech-to-Text Engine.
5
5
  Home-page: https://github.com/Picovoice/leopard
6
6
  Author: Picovoice
@@ -12,7 +12,7 @@ Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
15
- Requires-Python: >=3.7
15
+ Requires-Python: >=3.8
16
16
  Description-Content-Type: text/markdown
17
17
 
18
18
  # Leopard Binding for Python
@@ -27,15 +27,15 @@ Leopard is an on-device speech-to-text engine. Leopard is:
27
27
  - [Accurate](https://picovoice.ai/docs/benchmark/stt/)
28
28
  - [Compact and Computationally-Efficient](https://github.com/Picovoice/speech-to-text-benchmark#rtf)
29
29
  - Cross-Platform:
30
- - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
30
+ - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64)
31
31
  - Android and iOS
32
32
  - Chrome, Safari, Firefox, and Edge
33
- - Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano
33
+ - Raspberry Pi (3, 4, 5)
34
34
 
35
35
  ## Compatibility
36
36
 
37
- - Python 3.7+
38
- - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
37
+ - Python 3.8+
38
+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5).
39
39
 
40
40
  ## Installation
41
41
 
@@ -2,9 +2,8 @@ pvleopard/LICENSE,sha256=ZurJwSSRHw99lGaJP88vQREqtZmIABuVKd_rK7k7U70,11344
2
2
  pvleopard/__init__.py,sha256=OCI_7jgscvkzJMwT02SfB85_xOoQC8eb1e52HR_GKgo,577
3
3
  pvleopard/_factory.py,sha256=1ZotcV9xdcJLRAYajFwFHfB0tV3_9bSi15_cjhedMnM,2075
4
4
  pvleopard/_leopard.py,sha256=U6eNGzgQfpKaQxnDaOKHBDi2Kj_ysEHhF3SdVojbmhE,12741
5
- pvleopard/_util.py,sha256=BZBNptJIz8Ka14y2Sjoy21QJzehtjyuHsrJtmwyB9Zc,3244
5
+ pvleopard/_util.py,sha256=FMHEdBOG_p7psMl50X60-dRTSC62zAM-gLTUFmXUFOw,3179
6
6
  pvleopard/lib/common/leopard_params.pv,sha256=8jsCUfmOuuTD2MXLduV17hD1vHXuO-wscyJobYCsbfs,37699432
7
- pvleopard/lib/jetson/cortex-a57-aarch64/libpv_leopard.so,sha256=y431wzz9NuRsOXnhk7ciZ9s6Lc3v9lr5mWdbkqC1bXE,1300032
8
7
  pvleopard/lib/linux/x86_64/libpv_leopard.so,sha256=UhcGHHjCnR1Y-AMHVgVIbRoR_yjgRlw7SpcV86JwkX8,1415360
9
8
  pvleopard/lib/mac/arm64/libpv_leopard.dylib,sha256=o4WF9nzDvF5K9_AKppz-avXsk-wApmRVKQuUArbvxSc,1545072
10
9
  pvleopard/lib/mac/x86_64/libpv_leopard.dylib,sha256=Qwnh-0EI-VSWTjbSXnfmkxmYU8Z1ow-fFkCUQ2K9slc,1697720
@@ -15,7 +14,8 @@ pvleopard/lib/raspberry-pi/cortex-a72-aarch64/libpv_leopard.so,sha256=Kn5Ricawg6
15
14
  pvleopard/lib/raspberry-pi/cortex-a76/libpv_leopard.so,sha256=YoZZp2c6NmNhKI7Gc2PpjxBHpdZB74t3CBWr3qvVZ_w,1288048
16
15
  pvleopard/lib/raspberry-pi/cortex-a76-aarch64/libpv_leopard.so,sha256=CV575luBomZCR6rACismqXhmFSSvrEoNzUhXo5l3F4c,1300032
17
16
  pvleopard/lib/windows/amd64/libpv_leopard.dll,sha256=hM6eYFgcQ6p8ZIe8BFw0Yxm3enA2rPSRBCysVzFC8kQ,1524736
18
- pvleopard-2.0.2.dist-info/METADATA,sha256=ue-o6wzR0PEydJJ9YbvB96iS35mpQNhx5CWeWHy-aZ0,3838
19
- pvleopard-2.0.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
20
- pvleopard-2.0.2.dist-info/top_level.txt,sha256=DAhlor-zWSROmsQCFWDsx_IJSE62zlgJ3sE4quxhEPw,10
21
- pvleopard-2.0.2.dist-info/RECORD,,
17
+ pvleopard/lib/windows/arm64/libpv_leopard.dll,sha256=-RE83R0QjwtKdDN-sXy60a1tMbiqcIcxBRKfbViKy_4,1566720
18
+ pvleopard-2.0.4.dist-info/METADATA,sha256=lXiSgMkOgXwEOtFIw-_a9s8ZupuMtLWdhw5nveLT5PM,3812
19
+ pvleopard-2.0.4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
20
+ pvleopard-2.0.4.dist-info/top_level.txt,sha256=DAhlor-zWSROmsQCFWDsx_IJSE62zlgJ3sE4quxhEPw,10
21
+ pvleopard-2.0.4.dist-info/RECORD,,