Skip to content

Commit

Permalink
more intents + start named entities
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPicklePinosaur committed Jun 11, 2022
1 parent cdad108 commit f73c404
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 14 deletions.
52 changes: 39 additions & 13 deletions data/intents.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,56 @@
{
"tag": "weather",
"utterances": [
"what is the weather currently",
"how's the weather",
"what's it like outside",
"weather",
"can you tell me the weather",
"weather report",
"current weather",
"what's the weather like"
"what is the weather currently",
"how's the weather",
"what's it like outside",
"weather",
"can you tell me the weather",
"weather report",
"current weather",
"what's the weather like"
],
"responses": [
]
},
{
"tag": "datetime",
"utterances": [
"what time is it",
"tell me the time",
"what's the time",
"current time",
"time"
"what time is it",
"tell me the time",
"what's the time",
"current time",
"time"
],
"responses": [
]

},
{
"tag": "define",
"utterances": [
"what does {} mean",
"what is the definition of {}",
"what is the meaning of the word {}",
"{} definition"
],
"responses": [
]
},
{
"tag": "currencyConversion",
"utterances": [
"how much is {} in {}",
"convert {} to {}",
"currency convert {} to {}"
],
"responses": [
]
}
],
"entities": [
{
"name": ""
}
]
}
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
asyncio==3.4.3
certifi==2022.5.18.1
cffi==1.15.0
charset-normalizer==2.0.12
click==8.1.3
idna==3.3
Expand All @@ -8,8 +9,10 @@ joblib==1.1.0
nltk==3.7
numpy==1.21.6
pipeop==0.3.0
pycparser==2.21
regex==2022.6.2
requests==2.27.1
sounddevice==0.4.4
torch==1.11.0
tqdm==4.64.0
typing_extensions==4.2.0
Expand Down
7 changes: 6 additions & 1 deletion stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ async def run(uri):
await sock.send('{"eof": 1}')
await sock.recv()

async def test():
async with websockets.connect(config.VOSK_URL) as sock:
pass

if __name__ == "__main__":
asyncio.run(run(config.VOSK_URL))
asyncio.run(test())
# asyncio.run(run(config.VOSK_URL))

0 comments on commit f73c404

Please sign in to comment.