question: @ Override public synchronized void powerOnSelfTest ( ) throws Error { Log . i ( Mary . LOG , "Starting power-on self test." ) ; try { MaryDataType inType = maryxmlToMbrola . inputType ( ) ; Collection voices = Voice . getAvailableVoices ( this ) ; if ( voices . isEmpty ( ) ) throw new Error ( "No MBROLA voices present" ) ; Voice v = ( Voice ) voices . iterator ( ) . next ( ) ; assert v != null ; MaryData in = new MaryData ( inType , v . getLocale ( ) ) ; String example = inType . exampleText ( v . getLocale ( ) ) ; if ( example != null ) { in . readFrom ( new StringReader ( example ) ) ; in . setDefaultVoice ( v ) ; MaryData mbrola = maryxmlToMbrola . process ( in ) ; mbrola . setAudioFileFormat ( new AudioFileFormat ( AudioFileFormat . Type . WAVE , Voice . AF22050 , AudioSystem . NOT_SPECIFIED ) ) ; mbrola . setDefaultVoice ( v ) ; mbrolaCaller . process ( mbrola ) ; } else { Log . d ( Mary . LOG , "4 No example text -- no power-on self test!" ) ; } } catch ( Throwable t ) { throw new Error ( "Module " + toString ( ) + ": Power-on self test failed." , t ) ; } Log . i ( Mary . LOG , "Power-on self test complete." ) ; }
target:  Perform a power-on self test by processing some example input data.