/**
   * 将语音从tmpPath转换成用户的path
   *
   * @param tmpPath
   */
  public UserVoice saveVoice(String title, String voiceTmpPath, String url) {

    UserVoice userVoice = new UserVoice();
    userVoice.title = title;

    String voicePath = copyTmpToUser(voiceTmpPath);
    if (StringUtil.isBlank(voicePath)) {
      System.err.println("saveVoice error voicePath = " + voicePath);
      return null;
    }
    userVoice.path = voicePath;
    userVoice.url = url;
    add(userVoice);

    Notification notification = NotificationCenter.obtain(NotificationID.N_USERVOICE_MODEL_SAVE);
    NotificationCenter.getInstance().notify(notification);

    return userVoice;
  }
 @Override
 public void delete(UserVoice obj) {
   super.delete(obj);
   NotificationCenter.obtain(NotificationID.N_USERVOICE_MODEL_DELETE, obj).notifyToTarget();
 }