Duplicate libraries found for ddf.minim

edited June 2014 in Library Questions

Hello,

I am trying to run this example sketch from the STT Library, and even though I have not self-installed the Minim library since it should already be with processing, I get the following prompt when trying to run the sketch:

image alt text

And then i'm met with the error 'Duplicate libraries found for ddf.minim'

Here is the code:

/*
// Using External Microphones with STT
// www.getflourish.com/sst/
//
// Florian Schulz 2013
*/

import com.getflourish.stt.*;
import ddf.minim.*;
import javax.sound.sampled.*;

STT stt;
String result;
String key = "api key here";

void setup ()
{
  size(600, 200);
  // Init STT automatically starts listening
  stt = new STT(this, key);
  stt.enableDebug();
  stt.setLanguage("en"); 

  // Display available Inputs with id and name
  Mixer.Info[] mixerInfo = AudioSystem.getMixerInfo();

  for(int i = 0; i < mixerInfo.length; i++)
  {
    println("### " + i + ": " + mixerInfo[i].getName());
  }  

  // Set input (e.g. 0)  
  Mixer mixer = AudioSystem.getMixer(mixerInfo[0]);

  // Update the Minim instance that STT is using
  Minim minim = stt.getMinimInstance();
  minim.setInputMixer(mixer);
  println("### Source set to: " + mixerInfo[0]);

}

// Method is called if transcription was successfull 
void transcribe (String utterance, float confidence) 
{
  println(utterance);
  result = utterance;
}
public void keyPressed () {
  stt.begin();
}
public void keyReleased () {
  stt.end();
}

void draw ()
{
  background(0);
}

What's going on here?? Thank You!

Answers

  • If someone could shed some light on this that'd be great, as this is a time-pressing matter :(

  • I don't know the STT library (it can help to put its name in the subject, to attract knowledgeable people...). But perhaps it has its own copy of Minim, conflicting with the official one? Although I don't see why it would do that.

Sign In or Register to comment.