-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open-jtalk: init at 1.11 #203607
base: master
Are you sure you want to change the base?
open-jtalk: init at 1.11 #203607
Conversation
looks good to me |
Closing due to inactivity. Feel free to re-open and rebase or create a new PR if this is still relevant to you. |
I rebased on latest master and fixed the merge conflicts, but I'm not seeing an option to re-open. |
You have to re-open before rebasing. No worries though, we can continue in a new PR. |
I think you fixed it and the PR can be re-opened now, so we can also continue here if you want. |
Open JTalk is set up to allow the user to supply their own dictionary and voice files, but the ones most likely to be used are those published alongside Open JTalk itself. Using them as the defaults makes the program a lot more convenient to use.
Thanks to your link, I realized that it's possible to make a rebased PR reopenable again by force-pushing the pre-rebase commit that was associated with the PR when it was closed. Interesting GitHub quirk... I also adapted to the new formatting and directory structure requirements. Hopefully everything is all right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Here's my review that focuses on code improvements and questions (I'm not familiar with open-jtalk
).
fetchurl, | ||
}: | ||
|
||
stdenv.mkDerivation rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stdenv.mkDerivation rec { | |
stdenv.mkDerivation (finalAttrs: { |
See https://discourse.nixos.org/t/avoid-rec-expresions-in-nixpkgs/8293
version = "1.10"; | ||
|
||
src = fetchurl { | ||
url = "mirror://sourceforge/hts-engine/hts_engine%20API/hts_engine_API-${version}/hts_engine_API-${version}.tar.gz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url = "mirror://sourceforge/hts-engine/hts_engine%20API/hts_engine_API-${version}/hts_engine_API-${version}.tar.gz"; | |
url = "mirror://sourceforge/hts-engine/hts_engine%20API/hts_engine_API-${finalAttrs.version}/hts_engine_API-${finalAttrs.version}.tar.gz"; |
|
||
src = fetchurl { | ||
url = "mirror://sourceforge/hts-engine/hts_engine%20API/hts_engine_API-${version}/hts_engine_API-${version}.tar.gz"; | ||
sha256 = "sha256-4hMr5YYNj7SkYL52ZFTP18PiHPZ7UJxI4YBP6rFJaPc="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sha256 = "sha256-4hMr5YYNj7SkYL52ZFTP18PiHPZ7UJxI4YBP6rFJaPc="; | |
hash = "sha256-4hMr5YYNj7SkYL52ZFTP18PiHPZ7UJxI4YBP6rFJaPc="; |
sha256 = "sha256-4hMr5YYNj7SkYL52ZFTP18PiHPZ7UJxI4YBP6rFJaPc="; | ||
}; | ||
|
||
meta = with lib; { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta = with lib; { | |
meta = { |
meta = with lib; { | ||
description = "HMM-based speech synthesis engine"; | ||
homepage = "https://hts-engine.sourceforge.net/"; | ||
license = licenses.bsd3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license = licenses.bsd3; | |
license = lib.licenses.bsd3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same suggestions apply to this file.
./dic-path.patch | ||
./voice-path.patch | ||
]; | ||
voice = "${hts-voice-nitech-jp-atr503-m001}/share/hts-voice/nitech_jp_atr503_m001.htsvoice"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we support other voices as well?
patches = [ | ||
./dic-path.patch | ||
./voice-path.patch | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try using substituteInPlace --replace-fail
to avoid committing patch files
homepage = "https://hts-engine.sourceforge.net/"; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ yorwba ]; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | |
mainProgram = "hts_engine"; | |
}; |
homepage = "https://open-jtalk.sourceforge.net/"; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ yorwba ]; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | |
mainProgram = "open_jtalk"; | |
}; |
Description of changes
Open JTalk is a Japanese text-to-speech system built on top of the hidden Markov model-based HTS engine.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes