Giter Site home page Giter Site logo

Comments (4)

mmmaat avatar mmmaat commented on August 23, 2024

Hi,

This is not a bug but the expected behavior. The apostrophe is not displayed but pronounced... For example:

def test_its():
assert _test("it's") == ['ih-t-s']
assert _test("its") == ['ih-t-s']
assert _test("it s") == ['ih-t eh-s']
assert _test('it "s') == ['ih-t eh-s']

from phonemizer.

yvt avatar yvt commented on August 23, 2024

So you are saying, in contrary to what most people and New Oxford American Dictionary say (I'm |aɪm|), "I'm" being pronounced as |ɪm| as in "image" and "imitate" is an expected behavior?

from phonemizer.

mmmaat avatar mmmaat commented on August 23, 2024

Ok thank you for pointing out that bug, because it is a bug I recently introduced... In a former version we had:

$ echo "I'm looking for an image." | phonemize
aym luhkaxng faor axn ihmaxjh
$ echo "Im looking for an image." | phonemize
ihm luhkaxng faor axn ihmaxjh 

In the latest release we have:

$ echo "I'm looking for an image." | phonemize
ihm luhkaxng faor axn ihmaxjh
$ echo "Im looking for an image." | phonemize
ihm luhkaxng faor axn ihmaxjh 

I will correct that very soon. Note that the bug concerns only the festival backend, you can still use the espeak one:

$ echo "I'm looking for an image." | phonemize -l en-gb
aɪm lʊkɪŋ fəɹən ɪmɪdʒ
$ echo "Im looking for an image." | phonemize -l en-gb
ɪm lʊkɪŋ fəɹən ɪmɪdʒ

from phonemizer.

mmmaat avatar mmmaat commented on August 23, 2024

Fixed in commit a2af480

from phonemizer.

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.