Skip to content

Commit

Permalink
update v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jm12138 committed Jan 27, 2024
1 parent 5849677 commit 1f37bbd
Show file tree
Hide file tree
Showing 9 changed files with 873 additions and 925 deletions.
46 changes: 20 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
* Voice Wakeup (KWS) using Mic Input

```python
import os
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
os.environ['MSC_SDK_PATH'] = ''
import msc
import pyaudio
from ctypes import string_at, c_void_p
Expand All @@ -43,8 +36,13 @@
# Set APP ID
appid = ''
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
sdk_path = ''
# Set MSC Client
client = msc.MSC(params=f"appid={appid}".encode('UTF-8'))
client = msc.MSC(sdk_path=sdk_path, params=f"appid={appid}".encode('UTF-8'))
# Stop Event
stop_event = Event()
Expand Down Expand Up @@ -149,13 +147,6 @@
* Speech Recognizer (ASR) using Mic Input

```python
import os
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
os.environ['MSC_SDK_PATH'] = ''
import msc
import pyaudio
Expand All @@ -166,10 +157,15 @@
)
# Set APP ID
appid = ""
appid = ''
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
sdk_path = ''
# Set MSC Client
client = msc.MSC(params=f"appid={appid}".encode("UTF-8"))
client = msc.MSC(sdk_path=sdk_path, params=f"appid={appid}".encode('UTF-8'))
# Set Domain
domain = "iat"
Expand All @@ -189,13 +185,6 @@
* Speech Synthesizer (TTS)
```python
import os
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
os.environ['MSC_SDK_PATH'] = ''
import msc
import pyaudio
Expand All @@ -204,10 +193,15 @@
output_stream = p.open(format=pyaudio.paInt16, channels=1, rate=16000, output=True)
# Set APP ID
appid = ""
appid = ''
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
sdk_path = ''
# Set MSC Client
client = msc.MSC(params=f"appid={appid}".encode("UTF-8"))
client = msc.MSC(sdk_path=sdk_path, params=f"appid={appid}".encode('UTF-8'))
# Set Text Encoding
text_encoding = "UTF8"
Expand Down
46 changes: 20 additions & 26 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
* 语音唤醒

```python
import os
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
os.environ['MSC_SDK_PATH'] = ''
import msc
import pyaudio
from ctypes import string_at, c_void_p
Expand All @@ -45,8 +38,13 @@
# Set APP ID
appid = ''
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
sdk_path = ''
# Set MSC Client
client = msc.MSC(params=f"appid={appid}".encode('UTF-8'))
client = msc.MSC(sdk_path=sdk_path, params=f"appid={appid}".encode('UTF-8'))
# Stop Event
stop_event = Event()
Expand Down Expand Up @@ -151,13 +149,6 @@
* 语音识别

```python
import os
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
os.environ['MSC_SDK_PATH'] = ''
import msc
import pyaudio
Expand All @@ -168,10 +159,15 @@
)
# Set APP ID
appid = ""
appid = ''
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
sdk_path = ''
# Set MSC Client
client = msc.MSC(params=f"appid={appid}".encode("UTF-8"))
client = msc.MSC(sdk_path=sdk_path, params=f"appid={appid}".encode('UTF-8'))
# Set Domain
domain = "iat"
Expand All @@ -191,13 +187,6 @@
* 语音合成
```python
import os
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
os.environ['MSC_SDK_PATH'] = ''
import msc
import pyaudio
Expand All @@ -206,10 +195,15 @@
output_stream = p.open(format=pyaudio.paInt16, channels=1, rate=16000, output=True)
# Set APP ID
appid = ""
appid = ''
# Set MSC SDK DLL/SO File Path
# X86: SDK_DIR/bin/msc.dll
# X64: SDK_DIR/bin/msc_x64.dll
sdk_path = ''
# Set MSC Client
client = msc.MSC(params=f"appid={appid}".encode("UTF-8"))
client = msc.MSC(sdk_path=sdk_path, params=f"appid={appid}".encode('UTF-8'))
# Set Text Encoding
text_encoding = "UTF8"
Expand Down
Loading

0 comments on commit 1f37bbd

Please sign in to comment.