Hi There! First post here. I love rhasspy! I have successfully set it up to control home assistant, but now i would like to incorporate wolframalpha as a general knowledge api so that I can ask it general questions. I have two questions about this:
Has anyone successfully connected to the wolframalpha api? Did you have to write your own json parser to get the answer?
Is it difficult to send sentences without an obvious intent to a different api for processing?
No idea to question one but I can try to answer the 2nd one.
The short answer is yes, it is difficult.
Long answer:
The only way that I think it is possible now would be open transcription. I tested it and it understands quite a bit but at least on my pi4, it is slow. I also don’t think that it is possible to put unknown values into slots, so you would have to do something like this:
Have one rhasspy running without open transcription and have an intent like “Ask Wolfram Alpha”. Then, once that intent is recognized you have your script start recording and then send the 2nd part of that question to a 2nd rhasspy installation with open transcription enabled, get that parsed (or at least transcribed) and send the text to wolfram alpha. Doing it this way means that you can’t say it all in one sentence, you have to pause until your script starts recording and I would suggest playing some kind of sound or a question so you know when to speak.
I started to look into this, but the problem is that my speech to text (currently pocketsphinx) seems to want to only transcribe words that are in my intent configuration. If I click open transcription, I cannot discern intent for HA. So if I ask something like, “what color is the sky” the recognized speech is way different, and no intent is assigned. Any ideas on this?
I am trying to do something similar but less ambitious. I am trying to send text requests to the wolfram api, several people already have this working, https://youtu.be/ulBeifhWBxY They just needed to pull a number but I want a longer the text string. Does anyone know how to do this?