Git Product home page Git Product logo

Comments (6)

Ignalxy avatar Ignalxy commented on June 26, 2024

main.js的handleWithTimestamp函数有问题

	tmptext=tmptext.replace(/。|?|,|、|\?|\.|\ /g, ","); // in case there are a lot of "。"
        // 加这两行
	tmptext=tmptext.replace(/([a-zA-Z]+)/g, ',$1,'); 
	tmptext=tmptext.replace(',,', ','); 
	var words=tmptext.split(",");  // split to chinese sentence or english words

from funasr.

hausen1012 avatar hausen1012 commented on June 26, 2024

main.js的handleWithTimestamp函数有问题

	tmptext=tmptext.replace(/。|?|,|、|\?|\.|\ /g, ","); // in case there are a lot of "。"
        // 加这两行
	tmptext=tmptext.replace(/([a-zA-Z]+)/g, ',$1,'); 
	tmptext=tmptext.replace(',,', ','); 
	var words=tmptext.split(",");  // split to chinese sentence or english words

image

似乎还是一样。
image

from funasr.

zhaomingwork avatar zhaomingwork commented on June 26, 2024

@hausen1012
请把测试wav发过来,好复现

from funasr.

hausen1012 avatar hausen1012 commented on June 26, 2024

@hausen1012 请把测试wav发过来,好复现

感谢回复,我发现是h5的关闭 ws 判断有误,改为 true 以后可以识别全部了。

e11278a1acd0273962f705ee5e39109

from funasr.

zhaomingwork avatar zhaomingwork commented on June 26, 2024

@hausen1012 请把测试wav发过来,好复现

感谢回复,我发现是h5的关闭 ws 判断有误,改为 true 以后可以识别全部了。

e11278a1acd0273962f705ee5e39109

是true,最新的代码应该已改过这个问题

from funasr.

hausen1012 avatar hausen1012 commented on June 26, 2024

@hausen1012 请把测试wav发过来,好复现

感谢回复,我发现是h5的关闭 ws 判断有误,改为 true 以后可以识别全部了。
e11278a1acd0273962f705ee5e39109

是true,最新的代码应该已改过这个问题

可能是文档没更新,导致我下载的还是旧版本

from funasr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.