article.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { http } from '@/utils/http';
  2. // 分句
  3. export function segSentences(data) {
  4. return http.post(`/OtherSysTool/GCLSHMToolsServer/api/nlp/chinese/text2Sentences`, data);
  5. }
  6. // 批量分词
  7. export function BatchSegContent(data) {
  8. return http.post(`/OtherSysTool/GCLSHMToolsServer/api/nlp/chinese/text2word`, data);
  9. }
  10. // 音频预处理
  11. export function prepareTranscribe(data) {
  12. return http.post(`/OtherSysTool/GCLSHMToolsServer/api/xunfei/speech/prepareTranscribe`, data);
  13. }
  14. // 音频识别结果获取
  15. export function getWordTime(data) {
  16. return http.post(`/OtherSysTool/GCLSHMToolsServer/api/xunfei/speech/getResult`, data);
  17. }
  18. // 文本分析
  19. export function analysSubmit(data) {
  20. return http.post(`/OtherSysTool/GCLSTeachingServer/TextAnalyser/Analyse`, data, {}, false, { newAccessToken: true });
  21. }
  22. // 音频转为base64流
  23. export function fileToBase64Text(data) {
  24. return http.post(`/FileServer/SI?MethodName=file_store_manager-GetFileByteBase64Text`, data, {}, true);
  25. }
  26. // 检索课件单词的例句列表
  27. export function getCoursewareWordExampleSentenceList(data) {
  28. return http.post(
  29. `${process.env.VUE_APP_EepServer}?MethodName=book_content_manager-GetCoursewareWordExampleSentenceList_Sort`,
  30. data,
  31. );
  32. }
  33. // 得到文本分析地址
  34. export function getSysConfig() {
  35. return http.post(`${process.env.VUE_APP_EepServer}?MethodName=sys_config_manager-GetSysConfig`);
  36. }
  37. // 音频字幕打点-火山
  38. export function getWordTimes(data) {
  39. return http.post(`${process.env.VUE_APP_EepServer}?MethodName=tool-AudioTextDot_OldFormat`, data);
  40. }