I have the USB audio module, and I am trying to playback the sound in a mp3 file. When I give the t2 run command, the tessel appears to hang.
Looking for your Tessel...
INFO Connected to Tessel-02A3A0A141CD.
INFO Building project.
INFO Writing project to RAM on Tessel-02A3A0A141CD (117.76 kB)...
INFO Deployed.
INFO Running index.js...
%
Here is the program I am running;
'use strict';
// Import the interface to Tessel hardware
//const tessel = require('tessel');
const path = require('path');
const av = require('tessel-av');
const mp3 = path.join(_dirname, 'animalstick.mp3');
const sound = new av.Speaker(mp3);
sound.play();
sound.on('ended', function(seconds) {
sound.play();
});
I have also added the MP3 file into the .tesselinclude file.