Coder Social home page Coder Social logo

能否有调节字间延迟功能 about ekho HOT 1 CLOSED

hgneng avatar hgneng commented on August 17, 2024
能否有调节字间延迟功能

from ekho.

Comments (1)

hgneng avatar hgneng commented on August 17, 2024
  1. 程序并没有采用渐入渐出的方式播放。

  2. 为减少字间停顿,算法上是有让相邻字波形重叠的,重叠的比例根据经验调节,当音量少于一定阈值的部分允许重叠,参数是在程序里改的。如果字的录音音量较小,可能会出现重叠过多的情况。注音模式可能是没有重叠的(不是很确定,这个模块的代码很久没有改了)

-s参数是改变整体语速的,对字间重叠比例不影响。

以下是相关代码,你可以试试改这里面的参数重新编译来调试重叠效果:

src/libekho_impl.cpp

int EkhoImpl::writeToSonicStream(short *pcm, int frames, OverlapType type) {
  if (!mSonicStream) return 0;

  const int quiet_level = 4096; //1638;  // 音量低于(quiet_level / 65536)的部分重叠

from ekho.

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.