Author Topic: Mehrere Mikrofone mit verschiedenen Reaktionen  (Read 9550 times)

0 Members and 1 Guest are viewing this topic.

heiserfeger77

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 1
    • View Profile
Mehrere Mikrofone mit verschiedenen Reaktionen
« on: June 05, 2013, 05:42:28 AM »
Ich möchte Voxcommando auf meinen Heimserver (gepimpte Arbeitsstation mit Windows 7 Ultimate) laufen lassen und diverse Mikrofone in verschiedenen Räumen installieren, mit der sich dann die Haustechnik steuern läßt. Natürlich möchte ich immer die Haustechnik steuern in deren Raum ich gerade bin.

Beispiel:
Stehe ich im Schlafzimmer und sage "Licht an", soll natürlich das Licht im Schlafzimmer angehen, im Wohnzimmer würde es natürlich der gleiche Befehl sein, nur vom anderen Mikrofon.

1. Kann ich VoxCommando beibringen bei verschiedenen Mikrofonen bei gleichen Befehlen, verschiedene Aktionen durchzuführen?
2. Wie schließe ich verschiedene Mikrofone an, damit ich ein Unterscheidung habe, die ich in VoxCommando einsetzen kann?

Kalle

  • Moderator
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #1 on: June 05, 2013, 08:40:13 AM »
Ich möchte Voxcommando auf meinen Heimserver (gepimpte Arbeitsstation mit Windows 7 Ultimate) laufen lassen und diverse Mikrofone in verschiedenen Räumen installieren, mit der sich dann die Haustechnik steuern läßt. Natürlich möchte ich immer die Haustechnik steuern in deren Raum ich gerade bin.

Beispiel:
Stehe ich im Schlafzimmer und sage "Licht an", soll natürlich das Licht im Schlafzimmer angehen, im Wohnzimmer würde es natürlich der gleiche Befehl sein, nur vom anderen Mikrofon.

1. Kann ich VoxCommando beibringen bei verschiedenen Mikrofonen bei gleichen Befehlen, verschiedene Aktionen durchzuführen?
2. Wie schließe ich verschiedene Mikrofone an, damit ich ein Unterscheidung habe, die ich in VoxCommando einsetzen kann?

Hallo heiserfeger77 und willkommen im VoxCommando Forum. So wie Du dein Vorhaben beschrieben hast, wird es schwierig oder besser unmöglich.
Die Technik: Ein zentraler Rechner hat meistens nur einen Mikrofoneingang und einen line(AUX)-IN. Hier gibt es zwar spezielle Mikrofonmixer http://www.shure.de/produkte/mixers/scm810 die automatisch auf das besprochene Mikrofon umschalten (sind aber sehr teuer), zudem brauchst Du noch einige Funkmikrofone (in jedem Raum eins, wenn keine Verkabelung möglich ist) oder halt Unmengen an Kabel die zum Mikrofonmixer führen - um nur mal eine Hürde bei diesem Vorhaben zu nennen. Eine zweite Hürde könnte der Anschaffungspreis sein (Da ist man bei hochwertigen Geräten schnell einige tausend Euro los!), spielt aber nicht bei jedem eine Rolle.  ;)
Die Software: Voxcommando kann zwar per Befehl den Mic-Eingang umstellen aber den gleichen Befehl (Phrase) für verschiedene Aktionen lässt sich nur über aktivierte und deaktivierte Gruppen lösen - d.h. Du hättest gleichzeitig in jedem Raum eine Bewegungserkennung die z.B. die Gruppe für Befehle des Schlafzimmers aktiviert und alle anderen deaktiviert (ist aber bei mehreren Personen, die sich gleichzeitig in verschiedenen Räumen bewegen, nicht machbar). Hier nutzt man am besten "payloads" in VC. Als Beispiel würde dann dein Befehl folgender maßen aussehen: Phrase ->payload list ->payload list
 "Licht im -> Schlafzimmer -> einschalten/ausschalten"

Ich hoffe ich konnte ein wenig weiterhelfen und wenn  Du Hilfe beim erstellen von Befehlen mit "payloads" brauchst - kannst Du gerne hier posten (hier gibt es auch einen kleinen Einstieg für "payloads" in Deutsch http://voxcommando.com/forum/index.php?topic=735.msg5681#msg5681

Gruß Kalle
« Last Edit: June 05, 2013, 08:43:35 AM by Kalle »
***********  get excited and make things  **********

heiserfeger77

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 1
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #2 on: June 05, 2013, 12:34:29 PM »
Hallo Kalle!

Dass das nicht Out-of-the-box funktioniert ist mir schon klar. Allerdings ist die Möglichkeit mit Bewegungsmeldern auch nicht sinnvoll, da ich nun mal nicht alleine bin. Die verschiedenen Mikrofonanschlüsse kann man mit Billig-Notebook-Soundkarte (in USB-Stickform) nachrüsten (kosten bei Ebay keine 10 Euro). Dann hätte man allerdings das Kabelproblem, was jedoch nicht euer Problem sein soll. Gut wäre ein Mini-Computer (ala Raspberry PI) der per WLAN Mikrofonsignal über TCP-Mic-Plugin einbindet. TCP-Mic wird ja fürs Android-Plugin genommen. Doch kann dieser auch verschiedene TCP-Mic's unterscheiden und je nach Quelle Befehle in bestimmten Gruppen verwenden. Dann wäre allerdings noch der Programmieraufwand auf Raspberry PI's Seite zu beachten. Da dies ja auf Debian basiert.

Unter der Annahme dieser Konfiguration würde jedes Mikrofon (inkl. Raspberry PI) etwa 50 Euro kosten. Die Stromkosten wären mit etwa 8- 10 Watt auch im vertretbaren Bereich. (Raspberry PI = 2 - 3 Watt, WLAN 2-3 Watt, + Netzteilverlust)

Infos über Raspberry PI findet Ihr übrigens http://de.wikipedia.org/wiki/Raspberry_Pi

PS: Danke Kalle für den Link mit den Payloads. Die nutze ich schon kräftig, allerdings wollte ich nicht immer separat das Zimmer dazu nennen, da es auch für Gäste steuerbar sein soll. Und der eine nennt es halt Klo, Gästetoilette oder Scheißhaus. Das soll über das Mikrofon schon entschieden werden.
« Last Edit: June 05, 2013, 12:38:23 PM by heiserfeger77 »

Kalle

  • Moderator
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #3 on: June 06, 2013, 07:03:49 AM »
Quote
Doch kann dieser auch verschiedene TCP-Mic's unterscheiden und je nach Quelle Befehle in bestimmten Gruppen verwenden.

Nein, das TcpMic plugin kann nur einen Port abhören. Die einzige Möglichkeit diese Limitierung zu umgehen, wäre für jeden Raum eine eigene Instanz von VoxCommando zu starten, d.h. wenn Du 8 Räume hast, müsste auf deinem Rechner 8 mal VoxCommando gleichzeitig laufen (das funktioniert sogar - wenn Du -new als Startparameter zur voxcommando.exe hinzufügst - also VoxCommando.exe -new siehe Anhang) und jeweils einen anderen port im TcpMic plugin einstellst.

Ein ganz anderes Problem wäre das Mikrofon - Ich gehe mal davon aus, dass die Installation inclusive Mikrofon nicht sichtbar sein sollte - hier kommen eigentlich nur Boundary Mikrofone in frage und diese sind unter 50 EUR nicht zu haben.
Du kannst mir glauben, das wir eine Multiroom-Lösung hier schon oft diskutiert haben und wenn es auch nur einigermaßen funktionieren soll kommt man um einen Mikrofonmixer wie ich in meiner vorherigen post gelinkt habe nicht herum.

Hier mal ein Beispiel was in diese Richtung geht, aber jeglichen Rahmen von Aufwand sprengt  ;) : http://james.lipsit.com/home.htm

und von der gleichen Seite nur mal die Preis- und Teileliste für die Mikrofone: http://james.lipsit.com/whole.htm
« Last Edit: June 06, 2013, 07:06:15 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #4 on: June 06, 2013, 08:15:00 AM »
Kalle:  Multiple devices running VoxWav can connect to a single VoxCommando, and they can all use the same port.  There might be some problems if multiple devices are all sending audio data simultaneously but other than that it should be no problem.

A bigger challenge, I think, would be running VoxWav on raspberry pi.  If this is actually possible, I'd like to know about it.
« Last Edit: June 06, 2013, 08:59:51 AM by jitterjames »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #5 on: June 06, 2013, 09:17:56 AM »
James: Es sieht so aus, wie es möglich sein könnte, aber es ist schwer zu wissen, ob dies gut funktionieren würde. ... Looks like it's sort of possible to run Android apps on Raspberry Pi? http://reviews.cnet.co.uk/desktops/how-to-install-android-2-3-on-the-raspberry-pi-50009931/

How pleasant it is to set up, and how functional this Android porting process is, I don't know. (See also the comments below the article, for further links of possible interest re: the Razdroid community).
« Last Edit: June 06, 2013, 09:21:31 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Kalle

  • Moderator
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #6 on: June 06, 2013, 09:19:18 AM »
Quote
Kalle:  Multiple devices running VoxWav can connect to a single VoxCommando, and they can all use the same port.

Yes I know, but "heiserfeger77" would use one phrase to switch different devices (lamps) and I think this is only possible if he run multiple VC's with different ports - when he become VoxWav to run on a Rasperry Pi  ;)

His plan is to install for each room a raspberry Pi that is connect to VC and he will only say "to switch a lamp on/off" - Lamp ON or Lamp Off   ::)

Anyway, in my case this command makes no sense without specifying a "place/room or device", I have more than on lamp in each room  ;)
« Last Edit: June 06, 2013, 09:24:29 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #7 on: June 06, 2013, 09:43:00 AM »
Yes I know, but "heiserfeger77" would use one phrase to switch different devices (lamps) and I think this is only possible if he run multiple VC's with different ports

He should be able to do it with VoxWav because each time a new device transmits audio to TcpMic an event is generated with the IP address of the android device.  This can be used to determine which room you are in.
« Last Edit: June 06, 2013, 09:47:00 AM by jitterjames »

Kalle

  • Moderator
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #8 on: June 06, 2013, 09:45:36 AM »
He should be able to do it with VoxWav because each time a new device transmits audio to TcpMic an event is generated with the IP address of the android device.  This can be used to determine which room you are in.
Wow, good catch  :o
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #9 on: June 06, 2013, 09:47:42 AM »
Wow, good catch  :o
Well, when I wrote the plugin I added this event for just this type of thing :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #10 on: June 06, 2013, 09:53:39 AM »
How pleasant it is to set up, and how functional this Android porting process is, I don't know. (See also the comments below the article, for further links of possible interest re: the Razdroid community).

My guess is, not very pleasant (no hardware acceleration) but maybe it is enough to run VoxWav.  Maybe not.  I don't have a Pi yet so I'll just have to wait and see what people say.  Probably over time, it will because better, since people are still very interested in the Pi.

One question that arises though, is, how are you going to turn the microphone on and off with the pi?  There is no accelerometer and no touch screen (and no microphone).  If he intends to have 5 Pis all running voxwav with a microphone "always on" connecting to a single instance of VoxCommando, I think it will probably end in tears.  :'(

heiserfeger77

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 1
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #11 on: June 07, 2013, 05:17:48 AM »
Ok when i get different events over the tcpmic plugin, then i get it with a if-then-else. By the Way: is in voxcommando LCB possible to build (Select-Case-Syntax --> instead of if-the-else)?

At the moment i have no Pi - but i have order it. I will try it with an android on PI witrh Voxwav.

i would configure it in a way, that it autostart with linux.

Because of the look and feel in the room - this is a other step.

There a many steps to do for me. But every day i get a new ideas for a better homeliving.

By the way: The direct support between customer and developer here is fantastic. Good work and a nice day for all.

I give feedback, when Pi here and i have first facts.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #12 on: June 07, 2013, 09:17:07 AM »
No, sorry, there is no case syntax available in the LCB.  You can instead use multiple ifs.  There is an action:  VC.StopMacro if you are done and just want to exit the command.

Or you can use python.  Python does not have a case statement either but it does have else-if which is basically the same thing.

I think you might want to use the event/payload to enable/disable groups.  You can have 1 group of commands for each room.  That way you won't need to have an if block in each of your commands, just one in the command that handles the initial event.  But I guess it depends on how many commands you want.  I will help you when the time comes.

What are you using for your home automation controller?

heiserfeger77

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 1
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #13 on: June 07, 2013, 10:59:37 AM »
1. ok then i must use multiple ifs

2. I can't programming python. Perhaps i take a look on it.

3. The Payloadsfunction with enabled / disabled room-groups is not practicable, because of more than one person in my home. It must have function in different rooms at the same time. I thing about multiple VC-Instances (one for each room)

4. At the moment i use a Tellstick from Telldus for my light-management. I can control it trought commandline parameters. This is the most flexible solution for me.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #14 on: June 07, 2013, 11:36:27 AM »
3. The Payloadsfunction with enabled / disabled room-groups is not practicable, because of more than one person in my home. It must have function in different rooms at the same time. I thing about multiple VC-Instances (one for each room)

I don't think it really matters.  It should still be possible.  You can only try to find out.  You can run multiple instances of VC if you want but I think it will be more trouble to do it this way, and of course it will use more resources.

heiserfeger77

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 1
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #15 on: June 07, 2013, 07:22:10 PM »
Ok James - i test both ways. Is your way also practicable, when two persons in different rooms speaking at the same time?

By the way: Resources is not the problem. Server running with Core i7 with 16GB RAM

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #16 on: June 07, 2013, 09:46:14 PM »
If two commands arrive at the same time, yes, it would probably cause a problem.  Then again, I could probably modify the code to reduce the chances of that happeneing.  If an event were generated immediately before the wav file was processed, instead of when the transmission of data was started, then you would probably be quite safe unless you finished transmitting your commands at almost exactly the same time.

 We will see when the time comes. Even without worrying about the events, I'm not sure how well it deals with simultaneous commands.

fishware

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 1
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #17 on: October 19, 2015, 10:59:37 PM »
There is an facerecognation for ISpy. Maybe it helps you to identify YOU in a room. There is also an object traking over multiple cameras available. Maybe you can track yourself this way. I think about this for myself.


heiserfeger77

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 1
    • View Profile
Re: Mehrere Mikrofone mit verschiedenen Reaktionen
« Reply #18 on: October 20, 2015, 07:16:49 AM »
THX fishware,

at the moment, i use one instance of VC for a room. i every room i have installed a microfon (in big room sometimes two). All Mic's are directly pluged to the server over a active mic mixer. Every room has his own wake up name (for Example: living room, kitchen, toilet). So I can say "Toilet - Switch lights on" - So VC starts the commandline tool of tellstick to switch the wireless Power connector to turn on the lights. At the moment it is the best resolution for me.

My old plan to use the same wakeup-word for all rooms - i have fallen.