article.js 952 B

12345678910111213141516171819202122232425262728293031
  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/TeachingServer/TextAnalyser/Analyse`, data);
  21. }
  22. // 音频转为base64流
  23. export function fileToBase64Text(data) {
  24. return http.post(`/FileServer/SI?MethodName=file_store_manager-GetFileByteBase64Text`, data, {}, true);
  25. }