| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { http } from '@/utils/http';
- // 分句
- export function segSentences(data) {
- return http.post(`/OtherSysTool/GCLSHMToolsServer/api/nlp/chinese/text2Sentences`, data);
- }
- // 批量分词
- export function BatchSegContent(data) {
- return http.post(`/OtherSysTool/GCLSHMToolsServer/api/nlp/chinese/text2word`, data);
- }
- // 音频预处理
- export function prepareTranscribe(data) {
- return http.post(`/OtherSysTool/GCLSHMToolsServer/api/xunfei/speech/prepareTranscribe`, data);
- }
- // 音频识别结果获取
- export function getWordTime(data) {
- return http.post(`/OtherSysTool/GCLSHMToolsServer/api/xunfei/speech/getResult`, data);
- }
- // 文本分析
- export function analysSubmit(data) {
- return http.post(`/OtherSysTool/GCLSTeachingServer/TextAnalyser/Analyse`, data, {}, false, { newAccessToken: true });
- }
- // 音频转为base64流
- export function fileToBase64Text(data) {
- return http.post(`/FileServer/SI?MethodName=file_store_manager-GetFileByteBase64Text`, data, {}, true);
- }
- // 检索课件单词的例句列表
- export function getCoursewareWordExampleSentenceList(data) {
- return http.post(
- `${process.env.VUE_APP_EepServer}?MethodName=book_content_manager-GetCoursewareWordExampleSentenceList_Sort`,
- data,
- );
- }
- // 得到文本分析地址
- export function getSysConfig() {
- return http.post(`${process.env.VUE_APP_EepServer}?MethodName=sys_config_manager-GetSysConfig`);
- }
- // 音频字幕打点-火山
- export function getWordTimes(data) {
- return http.post(`${process.env.VUE_APP_EepServer}?MethodName=tool-AudioTextDot_OldFormat`, data);
- }
|