资源简介
基于Springboot微服务,引用科大讯飞Msc.jar实现对语音的听写与识别
代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
System
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-04 16:43 myVoice\
文件 277 2019-03-04 01:55 myVoice\.gitignore
目录 0 2019-03-04 17:07 myVoice\.idea\
文件 626 2019-03-04 09:58 myVoice\.idea\compiler.xm
文件 172 2019-03-04 09:58 myVoice\.idea\encodings.xm
目录 0 2019-03-04 09:57 myVoice\.idea\inspectionProfiles\
文件 71438 2019-03-04 09:57 myVoice\.idea\inspectionProfiles\Project_Default.xm
目录 0 2019-03-04 16:43 myVoice\.idea\libraries\
文件 568 2019-03-04 09:58 myVoice\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-03-04 09:58 myVoice\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 514 2019-03-04 11:07 myVoice\.idea\libraries\Maven__com_alibaba_fastjson_1_2_41.xm
文件 522 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 644 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 595 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 623 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 674 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 688 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 729 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_fasterxm
文件 515 2019-03-04 16:43 myVoice\.idea\libraries\Maven__com_google_code_gson_gson_2_8_3.xm
文件 546 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2019-03-04 09:58 myVoice\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 611 2019-03-04 09:58 myVoice\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 611 2019-03-04 09:58 myVoice\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 455 2019-03-04 09:58 myVoice\.idea\libraries\Maven__junit_junit_4_12.xm
文件 536 2019-03-04 09:58 myVoice\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_10.xm
文件 578 2019-03-04 09:58 myVoice\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_10.xm
文件 542 2019-03-04 09:58 myVoice\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 507 2019-03-04 09:58 myVoice\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
文件 573 2019-03-04 09:58 myVoice\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_11_2.xm
文件 608 2019-03-04 09:58 myVoice\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xm
文件 625 2019-03-04 09:58 myVoice\.idea\libraries\Maven__org_apache_tomcat_em
............此处省略101个文件信息
相关资源
- android 语音识别135644
- unity语音识别并控制任务作出相应动作
- Android 语音识别 科大讯飞
- 百度语音识别Android Studio版
- 科大讯飞语音唤醒SDK_forJava
- 科大讯飞语音识别demo
- 科大讯飞春招秋招面试java基础题
- java讯飞JDK实现语音识别语音合成
- 基于Android语音识别交互论文
- javaweb实现语音识别
- Jieba-Analysis 结巴分词
- 科大讯飞语音识别java版本demo
- 百度语音识别DEMO
- 百度语音识别android集成(eclipse)
- android开发讯飞离线命令词识别demo
- android中科大讯飞在线语音合成
- Unity 接入讯飞语音识别包(Android)
- AndroidStudio导入并使用讯飞语音听写
- 科大讯飞语音识别
- 科大讯飞语音接入AndroidStudio
- Android 语音发短信(语音识别-11_100)
- 讯飞语音识别android studio最简单的
- 科大讯飞webAPI语音合成,java
- Android 实现语音识别的完整代码
- 科大讯飞msc.jar包
- Sunflower.jar
- 调用科大讯飞的语音接口
- 科大讯飞6麦CAE集成指南_android_V1.2
- Android 语音唤醒(语音识别-11_101)
- Android 语音电子书(语音识别-11_099)
评论
共有 条评论