Example added with XMOS xCore Array Microphone
authorFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Sat, 23 Sep 2017 14:45:18 +0000 (10:45 -0400)
committerFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Sat, 23 Sep 2017 14:45:18 +0000 (10:45 -0400)
README.md

index 47bec43af737934495cd91a22dc1b6b1cd267bf2..36d2b9ec0caf1ed994e9140f0b6e88f8ed6faa03 100644 (file)
--- a/README.md
+++ b/README.md
@@ -103,4 +103,56 @@ You should get the following output:
 }
 ```
 
+The timeStamp is a unique ID in time to identify each frame. The tracked sources ID correspond to 0 if there is no tracked source, or something else (in this example 5) when a source is tracked. The xyz directional coordinates are then given for the tracked source. In this case, four tracked sources are displayed (1 active, 3 free spots where ID=0) because the system is configured to track up to four sources simultaneously.
+
+### XMOS xCore Array Microphone
+
+Connect the soundcard via USB to the computer. Then type the following command to see where is located the ReSpeaker:
+
+```
+arecord -l
+```
+
+You should get something like this:
+
+```
+**** List of CAPTURE Hardware Devices ****
+card 1: MID [HDA Intel MID], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
+  Subdevices: 1/1
+  Subdevice #0: subdevice #0
+card 1: MID [HDA Intel MID], device 2: ALC662 rev1 Alt Analog [ALC662 rev1 Alt Analog]
+  Subdevices: 1/1
+  Subdevice #0: subdevice #0
+card 3: UAC20 [XMOS Microphone Array UAC2.0], device 0: USB Audio [USB Audio]
+  Subdevices: 1/1
+  Subdevice #0: subdevice #0
+```
+
+In this case, the soundcard ID is 3, and the device ID is 0. Open the file config/xmos.ios, and set the soundcard ID and device ID:
+
+```
+#XMOS Device, 32bits.
+raw: { type = "soundcard"; card = 3; device = 0; format = "bin32"; }
+```
+
+To run ODAS with XMOS, and type in the following command:
+
+```
+bin/odascore -c config/xmos.cfg -i config/xmos.ios
+```
+
+You should get the following output:
+
+```
+{
+    "timeStamp": 623,
+    "src": [
+        { "id": 5, "x": 0.661, "y": 0.343, "z": 0.667 },
+        { "id": 0, "x": 0.000, "y": 0.000, "z": 0.000 },
+        { "id": 0, "x": 0.000, "y": 0.000, "z": 0.000 },
+        { "id": 0, "x": 0.000, "y": 0.000, "z": 0.000 }
+    ]
+}
+```
+
 The timeStamp is a unique ID in time to identify each frame. The tracked sources ID correspond to 0 if there is no tracked source, or something else (in this example 5) when a source is tracked. The xyz directional coordinates are then given for the tracked source. In this case, four tracked sources are displayed (1 active, 3 free spots where ID=0) because the system is configured to track up to four sources simultaneously.
\ No newline at end of file