*/
public void setProperty(SpeechProperty property, NSObject value) throws IllegalArgumentException {
ObjCObjectByReference errorPtr = new ObjCObjectByReference();
if ( !setObject_forProperty_error(value, property.getNativeValue(), errorPtr) ) {
NSError error = errorPtr.getValueAs(NSError.class);
throw new IllegalArgumentException("Could not set property: " + property + " to value " + value + ", error: " + error.localizedDescription());
}
}
/** Add a speech dictionary to those in use with this synthesizer
* @param dictionary the dictionary to add