JarodMica / audiobook_maker

GNU General Public License v3.0
203 stars 34 forks source link

It Keeps Truncating periods and splitting sentences in weird ways #15

Closed jackcorns421 closed 10 months ago

jackcorns421 commented 11 months ago

Thank you for your hard work. This is awesome, but it seems to have a problem with the way it splits up the text into separate lines. it also truncates periods and messes up the pronunciation of abbreviations.

For example:

Mr. Smith and Ms. Johnson live in St. Louis by a lake. Mr. Smith works for the C.I.A., and Ms. Johnson works for the D.E.A. as a secretary. One day, on the way home from work, Mr. Smith got a D.U.I. He blew a 0.9, and his B.A.C. was high enough to land him a night in jail.

Gets broken up like this:

  1. Mr
  2. Smith and Ms
  3. Johnson live in St
  4. Luis by a lake
  5. Mr
  6. Smith works for the C.I.A, and Ms
  7. Johnson works for the D.E.A
  8. as a secretary
  9. One day, on the way home from work, Mr
  10. Smith got a D.U.I
  11. He blew a 0.9, and his B.A.C
  12. was high enough to land him a night in jail.

If I paste the above text into Tortoise it all sounds good and works as expected. When using the audio book maker it gets split up and the output is un usable.

JarodMica commented 11 months ago

Shoot, that's because of the custom cleaner that I'm using to parse sentences, I'll have to modify it a bit and incorporate that in the next patch.

Thank you for the feedback and for using it!

JarodMica commented 10 months ago

This is resolved in the latest commit, I'll be working on some other bug fixes and getting them in for a patch in a package release soonish

JarodMica commented 10 months ago

Added to package and updated release.