smartpi 1.1.5__py3-none-any.whl → 1.1.6__py3-none-any.whl

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 (68) hide show
  1. smartpi/__init__.py +1 -1
  2. smartpi/onnx_text_workflow.pyc +0 -0
  3. smartpi/posenet_utils.pyc +0 -0
  4. smartpi/rknn_text_workflow.pyc +0 -0
  5. {smartpi-1.1.5.dist-info → smartpi-1.1.6.dist-info}/METADATA +2 -3
  6. {smartpi-1.1.5.dist-info → smartpi-1.1.6.dist-info}/RECORD +8 -68
  7. smartpi/__init__.pyc +0 -0
  8. smartpi/_gui.py +0 -66
  9. smartpi/ai_asr.py +0 -1037
  10. smartpi/ai_llm.py +0 -934
  11. smartpi/ai_tts.py +0 -938
  12. smartpi/ai_vad.py +0 -83
  13. smartpi/audio.py +0 -125
  14. smartpi/base_driver.py +0 -618
  15. smartpi/camera.py +0 -84
  16. smartpi/color_sensor.py +0 -18
  17. smartpi/cw2015.py +0 -179
  18. smartpi/flash.py +0 -130
  19. smartpi/humidity.py +0 -20
  20. smartpi/led.py +0 -19
  21. smartpi/light_sensor.py +0 -72
  22. smartpi/local_model.py +0 -432
  23. smartpi/mcp_client.py +0 -100
  24. smartpi/mcp_fastmcp.py +0 -322
  25. smartpi/mcp_intent_recognizer.py +0 -408
  26. smartpi/models/__init__.pyc +0 -0
  27. smartpi/models/snakers4_silero-vad/__init__.pyc +0 -0
  28. smartpi/models/snakers4_silero-vad/hubconf.pyc +0 -0
  29. smartpi/motor.py +0 -177
  30. smartpi/move.py +0 -218
  31. smartpi/onnx_hand_workflow.py +0 -201
  32. smartpi/onnx_image_workflow.py +0 -176
  33. smartpi/onnx_pose_workflow.py +0 -482
  34. smartpi/onnx_text_workflow.py +0 -173
  35. smartpi/onnx_voice_workflow.py +0 -437
  36. smartpi/posemodel/__init__.pyc +0 -0
  37. smartpi/posenet_utils.py +0 -222
  38. smartpi/rknn_hand_workflow.py +0 -245
  39. smartpi/rknn_image_workflow.py +0 -405
  40. smartpi/rknn_pose_workflow.py +0 -592
  41. smartpi/rknn_text_workflow.py +0 -240
  42. smartpi/rknn_voice_workflow.py +0 -394
  43. smartpi/servo.py +0 -178
  44. smartpi/temperature.py +0 -18
  45. smartpi/tencentcloud-speech-sdk-python/__init__.pyc +0 -0
  46. smartpi/tencentcloud-speech-sdk-python/asr/__init__.pyc +0 -0
  47. smartpi/tencentcloud-speech-sdk-python/asr/flash_recognizer.pyc +0 -0
  48. smartpi/tencentcloud-speech-sdk-python/asr/speech_recognizer.pyc +0 -0
  49. smartpi/tencentcloud-speech-sdk-python/common/__init__.pyc +0 -0
  50. smartpi/tencentcloud-speech-sdk-python/common/credential.pyc +0 -0
  51. smartpi/tencentcloud-speech-sdk-python/common/log.pyc +0 -0
  52. smartpi/tencentcloud-speech-sdk-python/common/utils.pyc +0 -0
  53. smartpi/tencentcloud-speech-sdk-python/soe/__init__.pyc +0 -0
  54. smartpi/tencentcloud-speech-sdk-python/soe/speaking_assessment.pyc +0 -0
  55. smartpi/tencentcloud-speech-sdk-python/tts/__init__.pyc +0 -0
  56. smartpi/tencentcloud-speech-sdk-python/tts/flowing_speech_synthesizer.pyc +0 -0
  57. smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer.pyc +0 -0
  58. smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer_ws.pyc +0 -0
  59. smartpi/tencentcloud-speech-sdk-python/vc/__init__.pyc +0 -0
  60. smartpi/tencentcloud-speech-sdk-python/vc/speech_convertor_ws.pyc +0 -0
  61. smartpi/text_gte_model/__init__.pyc +0 -0
  62. smartpi/text_gte_model/config/__init__.pyc +0 -0
  63. smartpi/text_gte_model/gte/__init__.pyc +0 -0
  64. smartpi/touch_sensor.py +0 -16
  65. smartpi/trace.py +0 -120
  66. smartpi/ultrasonic.py +0 -20
  67. {smartpi-1.1.5.dist-info → smartpi-1.1.6.dist-info}/WHEEL +0 -0
  68. {smartpi-1.1.5.dist-info → smartpi-1.1.6.dist-info}/top_level.txt +0 -0
smartpi/__init__.py CHANGED
@@ -4,5 +4,5 @@ from .base_driver import P1, P2, P3, P4, P5, P6, M1, M2, M3, M4, M5, M6
4
4
  __all__ = ["base_driver","gui","audio","ultrasonic","touch_sensor","temperature","humidity","light_sensor","color_sensor","motor","servo","led","flash",
5
5
  "trace","move","local_model","P1", "P2", "P3", "P4", "P5", "P6", "M1", "M2", "M3", "M4", "M5", "M6"]
6
6
 
7
- __version__ = "1.1.5"
7
+ __version__ = "1.1.6"
8
8
 
Binary file
smartpi/posenet_utils.pyc CHANGED
Binary file
Binary file
@@ -1,14 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpi
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  Summary: A library use for H2-RCU
5
5
  Author: ZMROBO
6
6
  Classifier: Programming Language :: Python :: 3
7
7
  Classifier: License :: OSI Approved :: MIT License
8
8
  Classifier: Operating System :: OS Independent
9
- Requires-Python: >=3.7, <3.12
9
+ Requires-Python: >=3.7
10
10
  Description-Content-Type: text/markdown
11
- Requires-Dist: numpy >=1.19.0
12
11
 
13
12
  灵芯派函数库
14
13
  SmartPi library
@@ -1,127 +1,68 @@
1
- smartpi/__init__.py,sha256=kkhsfSeW9bxVhzyp1KNaRjpRDbUsz0BHbtmBB-pZblw,392
2
- smartpi/__init__.pyc,sha256=Letl5VfZFBD5e-UMNRNaROM1f6EisCBDWoKzg5up6K0,634
3
- smartpi/_gui.py,sha256=tUHNamQSvXUrYFNgWI5GexjL9mTy_qeW0xbIExkTGoM,2290
1
+ smartpi/__init__.py,sha256=VaOgwzotBWOanDe_gtmqUC_f2r7Rid8Sb5T3Jby99k0,392
4
2
  smartpi/_gui.pyc,sha256=Z5Quht83gZFvU5JPS3Gu3S4HvvWuayYmY-VHRwyyl90,3210
5
- smartpi/ai_asr.py,sha256=wxh_1Klh8vJottAt19jq3qpOmM_Cw4DHQEPKpsHGhmE,40063
6
3
  smartpi/ai_asr.pyc,sha256=JHSHZO8fUiGEJKTdjrpXlms_68rH9dnLqqGiKuU4DW0,24932
7
- smartpi/ai_llm.py,sha256=-khBK2PMwbYUDvbaCTRCktE4dFloqfai4mHI-V8GEXM,36751
8
4
  smartpi/ai_llm.pyc,sha256=Bisqa8F-t5tKpYDP0dx3CiKI5CgD8FtMO6wraqMawzU,24655
9
- smartpi/ai_tts.py,sha256=OjAJs3XOykiufXuEDiaD0coKsWjknPdhwRpRzGLDZKU,36061
10
5
  smartpi/ai_tts.pyc,sha256=OZ3qSgse03goO0WdLxyla2XLYB5XXROOOWrbsNzjPzA,22843
11
- smartpi/ai_vad.py,sha256=9J1xxuKF8GvojkL_JuXv7_xE8bQAo5D49Xasi8piKK8,3630
12
6
  smartpi/ai_vad.pyc,sha256=0so9RoLdXYk61W7ebv4r1rNOh2No6MAGXZiA5_omEwM,2389
13
- smartpi/audio.py,sha256=Ca5rs-MhKNyNjvwVDyh4hpG4ssYG-MSO_I99MRsh8t0,3475
14
7
  smartpi/audio.pyc,sha256=11EaA6tFMqMjBR_nyt8W5YsFdlYMvtTX2R4Qy_syhlU,2702
15
- smartpi/base_driver.py,sha256=BwqgcYbQ9Rg8KiBJV2xy--NMNsMIg_zL-nnsAilCHJk,22687
16
8
  smartpi/base_driver.pyc,sha256=vJ2tDmUTgMrtSGBAQuFchZ2aOPpSTOwjB3HSgpjQy3c,11868
17
- smartpi/camera.py,sha256=AVpZsMpW-24CP3BOfarjmRawMJdTOZY7Crq7FeLOqb4,3292
18
9
  smartpi/camera.pyc,sha256=yd7sFrv_khv5SFhYWzcpJH6X3Ci6zz5xcZ3_pqPaNNA,2505
19
- smartpi/color_sensor.py,sha256=-oJU9tI28VAwy8lcc3J7PFVgAc-_fECYZwCQ-Uhq2Oo,554
20
10
  smartpi/color_sensor.pyc,sha256=CGg0iY9IY95-nMKRL2fU1P-oNsPWbBzXL1-jeP0weB4,555
21
- smartpi/cw2015.py,sha256=1lAF-pi_ye_ya1AZQS1sjbgsDf7MThO5IAskKsNGBzA,5695
22
11
  smartpi/cw2015.pyc,sha256=tchjrkbsNvfyplrrkWhdAic8tZuvheWFcV_MAVxd1kg,5202
23
- smartpi/flash.py,sha256=-pUqg6FSVoBiLFKqrG9B4dFqn8lICnQsSPJr_MtZLIU,4132
24
12
  smartpi/flash.pyc,sha256=g6V8tvqsdVK-3SlErds3SF67pbMZCAYsgjh3-wkfSzc,3398
25
- smartpi/humidity.py,sha256=uoSFt5mAKr-dHz125uznHXAPeTN61ZR92_2nQmytQ5M,522
26
13
  smartpi/humidity.pyc,sha256=-_B7NGwN9c2yOvA_jrNokcSDQ713c_SATpYgm2Pw-js,559
27
- smartpi/led.py,sha256=BUUDznPatAZW7raLqgb8851OwyMmC_7DsOtprhaL7IE,653
28
14
  smartpi/led.pyc,sha256=QKfypoQycErV5aYsGzN0ls82xRDAl2Lkz5NZ0k-q1Ig,524
29
- smartpi/light_sensor.py,sha256=5bZrAyo2gjrwWvbgJ5MF__awNI8oV6ZOMMmEdLD42zE,2498
30
15
  smartpi/light_sensor.pyc,sha256=TKRPYobqvLxSORjQd_JE7IQhufUDtDpPoXudvdAmm7A,1815
31
- smartpi/local_model.py,sha256=3LB93ZhR4ANIv57EF5PWeVN_LNoAMKLUGmQnQSrMe5Q,18961
32
16
  smartpi/local_model.pyc,sha256=0v8_uopfRzrUKYt4sJgtI6gHgaveH5UxElG9N7Hd3jE,11006
33
- smartpi/mcp_client.py,sha256=tPgivztxbENEUBaBEnFHfTuCqicTsXIObEBlbrrXPE4,3332
34
17
  smartpi/mcp_client.pyc,sha256=CqR0VHuFIVWeUU2stE96dKuPdFb0bEilJOSGbze_l3I,2434
35
- smartpi/mcp_fastmcp.py,sha256=2MRIShc7snk99MGIpWnQflToyIUfKziLOhZhSNZifzE,13316
36
18
  smartpi/mcp_fastmcp.pyc,sha256=7whLSrEDRrnZm0cN2uFrW_mEgqNtt_d6KScdeuHjNO0,6990
37
- smartpi/mcp_intent_recognizer.py,sha256=FGPHDu1DiPJoWTGEIN_vlFEHEBKyCGNLZegjxFyUcEk,18846
38
19
  smartpi/mcp_intent_recognizer.pyc,sha256=KbFPobzhC5Zc9aMvC7g2DHM1lyW4igNKZk9cOXSAZxA,8932
39
- smartpi/motor.py,sha256=GC1WNDb0e8EMn72Z8D7ff5G-mgRz56vXxb6NRHx3diQ,5451
40
20
  smartpi/motor.pyc,sha256=3-ZnTLHLnsTfnMW739FyBisCapvpzzg_QRWQM7E_QXw,3588
41
- smartpi/move.py,sha256=s1ZnkFtp6SCBnxhBxp6qQjGbifdsY5hjVCwlarTsZto,6688
42
21
  smartpi/move.pyc,sha256=WFdNAT7dnFY7R3TexYMY6KzYTrodUhbZsJ05kn5hWns,3925
43
- smartpi/onnx_hand_workflow.py,sha256=ZCoaWC6GygZSrhM6jhsuB6qmQ6GiAFFrso6rKAGmue8,8157
44
22
  smartpi/onnx_hand_workflow.pyc,sha256=c-zLdxzS2aMAsPzCryG8golknT3hAddYHePtA1w3lpE,5096
45
- smartpi/onnx_image_workflow.py,sha256=-saM_NxR6yDz06xlWZOvHf6cq3zmtOCFhCyZTGqvuOk,6188
46
23
  smartpi/onnx_image_workflow.pyc,sha256=85TJisROHhM7G9SK9e7zETDwsvwuW0bXEfsBRUV4LIY,4324
47
- smartpi/onnx_pose_workflow.py,sha256=w0zGlXXBgIcxwjLF7eYHPEePqRw3KXvKQUqzVd_UrzQ,20966
48
24
  smartpi/onnx_pose_workflow.pyc,sha256=7Dr8jncfayN5ffEmq_jpifU1zQPzWuX3wcd5lizedsY,12228
49
- smartpi/onnx_text_workflow.py,sha256=6l9MTT2T1-rNye3_dSHLI2U749Z94aoRdkSe6CNXfHw,7191
50
- smartpi/onnx_text_workflow.pyc,sha256=spnjtK69L-Uwey9krxsqt7cmppCpDTYquqylUKTDto0,5138
51
- smartpi/onnx_voice_workflow.py,sha256=jkMFzy3RUnLo8LZAuCUfsS3YCJWSZzZuiE4RFoQ2HZw,17440
25
+ smartpi/onnx_text_workflow.pyc,sha256=JO38SJWFsx3uyjiCFIC5txA7MYLkv3slP8HYCwdZT6M,5138
52
26
  smartpi/onnx_voice_workflow.pyc,sha256=jN-0JWwOoBNFJB5kWAafFVp521c52he7BLIAKIeXoY8,11464
53
- smartpi/posenet_utils.py,sha256=o3scK41Eqvftav4y4vp6_6HinQWNCLeLpArXAzqQ-7s,8983
54
- smartpi/posenet_utils.pyc,sha256=6dY8bd3htgIVuPDXlA_juYUOVcv5Zet-nBI0yTIZ8MQ,7178
55
- smartpi/rknn_hand_workflow.py,sha256=wsVN_PYP9M-1AFaN4yqrGksUBoamYfujW0nQq4nv3kU,10160
27
+ smartpi/posenet_utils.pyc,sha256=b648SJedwZZefMUpPHAsI_p8ietugmqmTCtEZRMtGPA,7178
56
28
  smartpi/rknn_hand_workflow.pyc,sha256=43OshAKVtd1K9RxsxlTwzhMoZG0m_-BAGq_sA3PxkSA,6337
57
- smartpi/rknn_image_workflow.py,sha256=4lTtcdmQ9KN5WiEnHayvqAd-dA0tiap5YXIqAMn5SoI,18444
58
29
  smartpi/rknn_image_workflow.pyc,sha256=hFcln0sC1g2ZNEyDFud-547vAhJDqOSaKp-CeF7jgsk,13471
59
- smartpi/rknn_pose_workflow.py,sha256=T09F9vcQ6-QG3PlFRpCI4AuTPzEl_s0C38wfMD21Ujo,27836
60
30
  smartpi/rknn_pose_workflow.pyc,sha256=j61x4iYy_Oxtsbi29-gjvvuSmv0Qiw2bB0E7f93cbQw,14788
61
- smartpi/rknn_text_workflow.py,sha256=KNBSetj3tmlLxdZOm0yzbiDnjH8S5191fuxh5Mi-uCY,9632
62
- smartpi/rknn_text_workflow.pyc,sha256=ay_4NNkUgRhvpMYddbqMr6Nl5nzPl4fpmKYh0aG5eQM,7045
63
- smartpi/rknn_voice_workflow.py,sha256=T8iRQWPtJYXqoHIZH2FiT1WLxwN3HQg4D-mg-5KvYdA,16326
31
+ smartpi/rknn_text_workflow.pyc,sha256=m3G2K8uJHnSjZEVk28YfhxepOsV0z0BjhrP3cP2Pnio,7045
64
32
  smartpi/rknn_voice_workflow.pyc,sha256=ZVZFzYu4UnqT36o9U6GAvZdtDtEYB0z1jfdcHwjd8eU,11263
65
- smartpi/servo.py,sha256=m9jy9x_K8o51g86u7ve9tbuCS8ssInflFrFwbi_rKYY,5968
66
33
  smartpi/servo.pyc,sha256=3_t_hiypSpCRDhY9cVUDeKVewfElB0H3wnjHRBb4ZCk,3939
67
- smartpi/temperature.py,sha256=dWK4RBDIDewpdL82f-s3E1B4F4KqG4VAS0dHgjnlKGM,508
68
34
  smartpi/temperature.pyc,sha256=Zc6q7GIHFDHsDV7MXEXljuo6JarSAL48nmEDUvm3Agc,562
69
- smartpi/touch_sensor.py,sha256=iF3vtcGZKxrCzCjItr_MpmjoKAdV2vUGUeV6TNiwomc,483
70
35
  smartpi/touch_sensor.pyc,sha256=hrStYjwjv6oSfV2ZQQYSLqJarhN4nuHRDdZbxDraWkc,547
71
- smartpi/trace.py,sha256=EZhhWspxv6FsjKkWvSNnqXR2XKrfjntvAqQm2vn9bbE,4798
72
36
  smartpi/trace.pyc,sha256=GBxc0cdEUgiqPkQMhxvnW3F16LI_brUrUpclERvrH1A,2961
73
- smartpi/ultrasonic.py,sha256=GMN_ohaUxILsanRP8rnBIg6_cqJxwNNza8KEyMmjyVQ,673
74
37
  smartpi/ultrasonic.pyc,sha256=mBE4oG45xFWWyFA7j0l0LlHQbXMjqlfj1RTH1TKB9nA,669
75
38
  smartpi/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
- smartpi/models/__init__.pyc,sha256=ScrypVMl-uYoHbSArKxRiR8j4SzOR9ecU3B-Jhza3o0,123
77
39
  smartpi/models/snakers4_silero-vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
78
- smartpi/models/snakers4_silero-vad/__init__.pyc,sha256=fndZQRigLkQMQEs-3xvnBgmRJUpAea0hCg_8R7HfqIM,143
79
40
  smartpi/models/snakers4_silero-vad/hubconf.py,sha256=lD99cUdVPWatwB6V4RNMayD2BWZcBPaTtcgmywqjTLs,1992
80
- smartpi/models/snakers4_silero-vad/hubconf.pyc,sha256=RkQyV1rrxK0bD_gx_bdWFeEjh_EQbfBKp5h1uG-qlcU,1670
81
41
  smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad.jit,sha256=hcSOHw7LYE5dKiaPPM-5EtT36TWs3IavWj_FsK6nspo,2269612
82
42
  smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad.onnx,sha256=JiOilT9v89LB5hdAxs23FoEzR5smff7xFKSjzFvdeI8,2327524
83
43
  smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad_16k_op15.onnx,sha256=todaSbrPbVeCan4KVJ1aBddp7jRAXK3Mn_i0RCVEsfk,1289603
84
44
  smartpi/models/snakers4_silero-vad/src/silero_vad/data/silero_vad_half.onnx,sha256=HgsZWtSAZZXvRGb0GdFvyn5K_PxmabjAtfduqHVHx2k,1280395
85
45
  smartpi/posemodel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
- smartpi/posemodel/__init__.pyc,sha256=xhAVPqkOpW9Gq7yiJwnOG463wg_9wExKR8dz-7TCypI,126
87
46
  smartpi/posemodel/posenet.tflite,sha256=KFcCnk1X5KvJrVC_c_PhL76pdvwL0hZvBdNqhzZ7J2I,1303152
88
47
  smartpi/tencentcloud-speech-sdk-python/__init__.py,sha256=-yYBDkgMDSHYf_F_uX23wZsDSjrudhppJvm34su8_I4,23
89
- smartpi/tencentcloud-speech-sdk-python/__init__.pyc,sha256=xTX2la2DsIp-IQgkLDjjJ5cs-p76eWCCRE794T8WcwI,147
90
48
  smartpi/tencentcloud-speech-sdk-python/asr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
- smartpi/tencentcloud-speech-sdk-python/asr/__init__.pyc,sha256=3jBL-z4zSRe6NUtiZcptmbn6Ei1NSS_gy2sfg90BwZY,151
92
49
  smartpi/tencentcloud-speech-sdk-python/asr/flash_recognizer.py,sha256=FWJcVxkN6_KyeXmAhhlueoVvexs-dGnfzw3N7jPBPa8,5752
93
- smartpi/tencentcloud-speech-sdk-python/asr/flash_recognizer.pyc,sha256=NAcy0jLpFqwiIPTxAvEq5OnWIISHnoaT3ZU8PcFes9M,6585
94
50
  smartpi/tencentcloud-speech-sdk-python/asr/speech_recognizer.py,sha256=1X_5eSUEJGBDzffvKvIKFbwRgviXNGb7sTZqS7szyOc,9568
95
- smartpi/tencentcloud-speech-sdk-python/asr/speech_recognizer.pyc,sha256=N7zXF7Rs1vjXlVGGXqdLwXfbWbJ2PlGgzmpAnFtduaY,9908
96
51
  smartpi/tencentcloud-speech-sdk-python/common/__init__.py,sha256=CCIy8VClDV-BJWH-I2ntU0gcfShap6HEMWpdjSYGPKc,23
97
- smartpi/tencentcloud-speech-sdk-python/common/__init__.pyc,sha256=D1SGcB2cCv4luACsBLrX7Ta720u_gzxNSeYOQH0rEBw,154
98
52
  smartpi/tencentcloud-speech-sdk-python/common/credential.py,sha256=Igqg4FexZXidjj0W8MfqRJc-2gPrhIbm3w2re3QVBL0,198
99
- smartpi/tencentcloud-speech-sdk-python/common/credential.pyc,sha256=ZPewv_SI4g8YMo-ELNak97T_R-AeonkUFZ5fVAEN8FI,495
100
53
  smartpi/tencentcloud-speech-sdk-python/common/log.py,sha256=ekZVwv6USLyShxLTB-Mhog0g8w-qGkklOJjuAUtvQsk,536
101
- smartpi/tencentcloud-speech-sdk-python/common/log.pyc,sha256=Q26j3AA8RuXwelhvDxSBTwxsWX_PZt1_OVMs1qWwGyE,616
102
54
  smartpi/tencentcloud-speech-sdk-python/common/utils.py,sha256=baodAxaEpbGJQPmtvLQyyuav5K3ht_UBVq8s1yNH5Ww,116
103
- smartpi/tencentcloud-speech-sdk-python/common/utils.pyc,sha256=dDV-2s4RQxML7rFHXjnK34o7mFKsNgWtuDuS-6SNhW4,301
104
55
  smartpi/tencentcloud-speech-sdk-python/examples/tts/tts_text.txt,sha256=ufooughGwSPBnLxulH1BNwTFqsDSoLlvjRa2o-PJy1g,2669
105
56
  smartpi/tencentcloud-speech-sdk-python/soe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
- smartpi/tencentcloud-speech-sdk-python/soe/__init__.pyc,sha256=_XGNVUvnz8365EBzuAJ5VuoLtXGffVjo4fvVYQFXo3o,151
107
57
  smartpi/tencentcloud-speech-sdk-python/soe/speaking_assessment.py,sha256=J4C2uAqRCVh9qICe6Ug-nJmnvmsJCfa2uylOXo6V-y8,8289
108
- smartpi/tencentcloud-speech-sdk-python/soe/speaking_assessment.pyc,sha256=xrW6y5opvEVPlCigeLqyFC8W3nNinQjN22YE_7jD72M,8639
109
58
  smartpi/tencentcloud-speech-sdk-python/tts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
- smartpi/tencentcloud-speech-sdk-python/tts/__init__.pyc,sha256=3WltFBUIiYirnKsWtXTaoMxmcFwk3_REemWr_CrnzMs,151
111
59
  smartpi/tencentcloud-speech-sdk-python/tts/flowing_speech_synthesizer.py,sha256=X20uhp-yfqtRBnwzpxnt6hBtTkvAGgzh4OzjnAgLGQs,9908
112
- smartpi/tencentcloud-speech-sdk-python/tts/flowing_speech_synthesizer.pyc,sha256=1LqwSI8l5clheAzTONHHgwlW_sOgjUN45fySw5Nbv94,10745
113
60
  smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer.py,sha256=8UltVigufuvIN_tYzUwsLsI4882MB7ZjAjelgyKDHjA,4216
114
- smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer.pyc,sha256=ryImMA_D-ROaA9eBOob9AtYvgy-3jcUVJdOjGS4SzsI,4720
115
61
  smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer_ws.py,sha256=G8Jc8S74Gekgsp_qFmgYN3IBRfeQWD8AtbwAl6NdMGE,7648
116
- smartpi/tencentcloud-speech-sdk-python/tts/speech_synthesizer_ws.pyc,sha256=1ULASF8xhAPwZ5a19Y4Wd_pTzDUEqeZ-3QzE_RBL3UU,8372
117
62
  smartpi/tencentcloud-speech-sdk-python/vc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
118
- smartpi/tencentcloud-speech-sdk-python/vc/__init__.pyc,sha256=NzwtDNyTktHwMdnKUe1v-7-l3A7G8MC4NwzDGJqdOCE,150
119
63
  smartpi/tencentcloud-speech-sdk-python/vc/speech_convertor_ws.py,sha256=JKZhJlFy4RTDVrg9Vqyr3cenNgHkK-NtJoTboVeX-dU,7799
120
- smartpi/tencentcloud-speech-sdk-python/vc/speech_convertor_ws.pyc,sha256=t8kvETKXsFe86rm7EenUgfILRQwZSfgcH9i93hfFwxA,8096
121
64
  smartpi/text_gte_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
- smartpi/text_gte_model/__init__.pyc,sha256=ePtPBzFJ9hMRp4OM-W2-7Jlzzk7zaDkbFlpNZiwE5BE,131
123
65
  smartpi/text_gte_model/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
- smartpi/text_gte_model/config/__init__.pyc,sha256=n_q5SrCzuSwIOKo-K_V1NBHUkNKaJlUlfkClaJj7Y08,138
125
66
  smartpi/text_gte_model/config/config.json,sha256=dkFw_GRLSEkp6VT2U92alaGUfCRRJBQysJYSbJYznLc,818
126
67
  smartpi/text_gte_model/config/quantize_config.json,sha256=snZbw5kBj_FupAbcYazm_11wNRCbX2m468VBjl6svd4,703
127
68
  smartpi/text_gte_model/config/special_tokens_map.json,sha256=PDUH823_V7zkNyI9s7MIHR4rUuw-Vu5VQ4GT7LLJTdY,132
@@ -129,9 +70,8 @@ smartpi/text_gte_model/config/tokenizer.json,sha256=BC58aSuzfzE-tNG0UDwcFfNT_mJO
129
70
  smartpi/text_gte_model/config/tokenizer_config.json,sha256=w5RiDifbeIYy6vyGX5v94vFmcko1TMItqnY0RfcBO1Q,639
130
71
  smartpi/text_gte_model/config/vocab.txt,sha256=oi9hP3uz_8h8XoHNh6rgLnVdJbIEm75zKoSKM8HzsC8,84758
131
72
  smartpi/text_gte_model/gte/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
132
- smartpi/text_gte_model/gte/__init__.pyc,sha256=Xl2sRrcgq7V0Qcz9OhP99hyGo3DkuLUV7i4XcePsxQU,135
133
73
  smartpi/text_gte_model/gte/gte_model.onnx,sha256=XXYg6TUhzOx1SqAhp6ePDU0QgeK6DQEqHATMuQQJCNE,30468366
134
- smartpi-1.1.5.dist-info/METADATA,sha256=6c7JukrtxQDd8_h-2Vi6b1UYIROtkja3tFxBxF0oivU,752
135
- smartpi-1.1.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
136
- smartpi-1.1.5.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
137
- smartpi-1.1.5.dist-info/RECORD,,
74
+ smartpi-1.1.6.dist-info/METADATA,sha256=CwSE4NtJ3qgWYNuQNmh6LPwVxalJN84EH_fv3MZSnyI,715
75
+ smartpi-1.1.6.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
76
+ smartpi-1.1.6.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
77
+ smartpi-1.1.6.dist-info/RECORD,,
smartpi/__init__.pyc DELETED
Binary file
smartpi/_gui.py DELETED
@@ -1,66 +0,0 @@
1
-
2
-
3
- import socket
4
- import json
5
- import time
6
-
7
- class gui_client:
8
- def __init__(self, host="127.0.0.1", port=65167, timeout=2.0):
9
- self.sock = None
10
- try:
11
- self.sock = socket.create_connection((host, port), timeout=timeout)
12
- self.clear()
13
- except :
14
- self.sock = None
15
-
16
- def is_connected(self):
17
- result = False
18
- if self.sock is not None:
19
- result = True
20
- return result
21
-
22
- def _send(self, cmd):
23
- if self.sock is None:
24
- return
25
- try:
26
- self.sock.sendall((json.dumps(cmd) + "\n").encode())
27
- time.sleep(0.1) # 确保命令发送出去
28
- except :
29
- self.sock = None
30
-
31
- def show_text(self, x, y, text, color="black", size=16, update_bgc=False, bgc_color="white"):
32
- self._send({"type": "text", "x": x, "y": y, "text": text, "color": color, "size": size, "update_bgc": update_bgc, "bgc_color": bgc_color})
33
-
34
- def print(self, text):
35
- self._send({"type": "print", "text": text})
36
-
37
- def println(self, text):
38
- self._send({"type": "println", "text": text})
39
-
40
- def show_image(self, x, y, path, width, height):
41
- self._send({"type": "image", "x": x, "y": y, "path": path, "width": width, "height": height})
42
-
43
- def draw_line(self, x1, y1, x2, y2, color="black", width=1):
44
- self._send({"type": "line", "x1": x1, "y1": y1, "x2": x2, "y2": y2, "color": color, "width": width})
45
-
46
- def fill_rect(self, x, y, w, h, color="black"):
47
- self._send({"type": "fill_rect", "x": x, "y": y, "w": w, "h": h, "color": color})
48
-
49
- def draw_rect(self, x, y, w, h, width, color="black"):
50
- self._send({"type": "draw_rect", "x": x, "y": y, "w": w, "h": h, "width": width, "color": color})
51
-
52
- def fill_circle(self, cx, cy, r, color="black"):
53
- self._send({"type": "fill_circle", "cx": cx, "cy": cy, "r": r, "color": color})
54
-
55
- def draw_circle(self, cx, cy, r, width, color="black"):
56
- self._send({"type": "draw_circle", "cx": cx, "cy": cy, "r": r, "width": width, "color": color})
57
-
58
- def clear(self):
59
- self._send({"type": "clear"})
60
-
61
- def finish(self):
62
- self.sock.close()
63
-
64
- # 外部调用
65
- gui = gui_client()
66
-