Testing speechs apis with JAVA