drhirn / fhem-rhasspy Goto Github PK
View Code? Open in Web Editor NEWFHEM module for controlling devices via RHASSPY voice assistant
FHEM module for controlling devices via RHASSPY voice assistant
If there are two (or more) device in a room with the same mapping, and the user is telling fhem-rhasspy to "turn up the volume", fhem-rhasspy should ask the user which device to use
In line 1228 , this
$room = $
should be changed to
$room = $_;
I think. Otherwise FHEM restarts.
(This is my first use of github, so I am sorry if I do not use is appropriately).
https://forum.fhem.de/index.php/topic,113180.msg1135182.html#msg1135182
Die Mehrsprachigkeit zielt jetzt ja soweit ich das nachvollziehen kann nur auf die Rhasspy-Ebene ab.
Was ich toll fände, wäre wenn es Mehrsprachigkeit auch auf der FHEM-Ebene gäbe:
Zwei Rhasspy-Devices anlegen, welche sich mit zwei unterschiedlichen Rhasspy-Mastern verbinden, sollte ja kein Problem sein.
Aber das bewusste Trainieren von wenigen Wörtern , um die Schwierigkeiten der Speech2Text-Fähigkeit zu erleichtern, wird dann durch nur ein Attribut rhasspyRoom /rhasspyName aufgeweicht. Beide Master erlenen dann "Stehlampe" obwohl der Engländer damit wenig anfangen kann. "Rhasspy weiß nicht, wie man folgenden Worte ausspricht...".
Könnte man also in Abhängigkeit einer Sprachdefinition in der DEF auch unterschiedliche, mehrere Raumattribute zur Verfügung stellen?
rhasspyRoomDE, rhasspyRoomEN
Fetch all siteIds to compare them with rhasspyRooms
sub fetchSiteIDs(){
my $RhasspyMaster = AttrVal("Rhasspy","rhasspyMaster",'http://127.0.0.1:12101')."/api/profile";
my $ua = LWP::UserAgent->new();
my $response = $ua->get("$RhasspyMaster");
my $content = $response->content;
my $ref = JSON->new->decode($content);
my $JSONString = encode('cp-1252',$ref->{'dialogue'}{'satellite_site_ids'});
fhem("setreading Rhasspy SatellitesIDs $JSONString");
}
If there are commands in shortcuts like {fhem ("set RXV777 on")}
they don't get executed in FHEM. Maybe RHASSPY_runCmd?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.