日期:2014-05-20  浏览次数:20770 次

java怎么创建或者MP3文件啊
如题,不是读取mp3.是创建一个全新的mp3文件.
因为我需要将一段'文本'变成mp3格式(如:把 '北京你好' 转成mp3播放),有没有什么开发组件支持啊?

下面这段似乎可以在nokia的手机上发音.但是 data的数据是怎么来的?用什么可以转换不?
com.nokia.mid.sound.Sound开发包在哪里下载


import javax.microedition.midlet.*;  
  import javax.microedition.lcdui.*;  
  import com.nokia.*;  
  import java.io.*;  
  import java.util.*;  
  import com.nokia.mid.sound.Sound;  
   
  public class soundplay extends MIDlet {  
  static soundplay instance;  
  private Sound ph[] = new Sound [4];  
  public void playsound() {  
   
  try {  
   
   
   
   
  byte[] data = {  
  (byte)0x02, (byte)0x4a, (byte)0x3a, (byte)0x40,  
  (byte)0x04, (byte)0x01, (byte)0x0f, (byte)0x18,  
  (byte)0x55, (byte)0x84, (byte)0x18, (byte)0x55,  
  (byte)0x85, (byte)0xd8, (byte)0x4d, (byte)0xa4,  
  (byte)0x20, (byte)0x83, (byte)0x4c, (byte)0x34,  
  (byte)0xc4, (byte)0x95, (byte)0x61, (byte)0x36,  
  (byte)0x15, (byte)0x61, (byte)0x76, (byte)0x13,  
  (byte)0x41, (byte)0x06, (byte)0x17, (byte)0x61,  
  (byte)0x86, (byte)0x17, (byte)0x61, (byte)0x38,  
  (byte)0x10, (byte)0x81, (byte)0x36, (byte)0x15,  
  (byte)0x69, (byte)0x06, (byte)0x10, (byte)0x81,  
  (byte)0x76, (byte)0x18, (byte)0x61, (byte)0x76,  
  (byte)0x13, (byte)0x81, (byte)0x08, (byte)0x13,  
  (byte)0x81, (byte)0x08, (byte)0x13, (byte)0x69,  
  (byte)0x5a, (byte)0x13, (byte)0xa1, (byte)0x26,  
  (byte)0x90, (byte)0x81, (byte)0x56, (byte)0x10,  
  (byte)0x61, (byte)0x56, (byte)0x17, (byte)0x61,  
  (byte)0x36, (byte)0x90, (byte)0x82, (byte)0x0d,  
  (byte)0x30, (byte)0xd3, (byte)0x12, (byte)0x55,  
  (byte)0x84, (byte)0xd8, (byte)0x55, (byte)0x85,  
  (byte)0xd8, (byte)0x4d, (byte)0x04, (byte)0x18,  
  (byte)0x5d, (byte)0x86, (byte)0x18, (byte)0x5d,  
  (byte)0x84, (byte)0xe0, (byte)0x42, (byte)0x04,  
  (byte)0xd8, (byte)0x55, (byte)0xa4, (byte)0x18,  
  (byte)0x42, (byte)0x05, (byte)0xd8, (byte)0x61,