-
Notifications
You must be signed in to change notification settings - Fork 465
Delta vocaloid09378 patch 1 #2012
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
deltaVOCALOID09378
wants to merge
13
commits into
stakira:master
Choose a base branch
from
deltaVOCALOID09378:deltaVOCALOID09378-patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
673072b
Create ThaiArpasingBydeltaVOCALOID
deltaVOCALOID09378 5534f44
Thai CVVC-VCCV Edit By DELTA SYNTH
deltaVOCALOID09378 6d88538
Merge branch 'stakira:master' into master
deltaVOCALOID09378 7b15ffb
Create Red Theme
deltaVOCALOID09378 274e922
Rename Red Theme to Red Theme.axml
deltaVOCALOID09378 df579bf
Update crowdin.yml
deltaVOCALOID09378 b37f18e
สร้างโดยใช้ Colab
deltaVOCALOID09378 41943ae
สร้างโดยใช้ Colab
deltaVOCALOID09378 188f7e4
สร้างโดยใช้ Colab
deltaVOCALOID09378 399963b
สร้างโดยใช้ Colab
deltaVOCALOID09378 9a07d7f
สร้างโดยใช้ Colab
deltaVOCALOID09378 aebc7c6
Refactor Thai VCCV Phonemizer class structure
deltaVOCALOID09378 7c57f0e
Delete OpenUtau/Colors/Red Theme.axml
deltaVOCALOID09378 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Crowdin Action | ||
| name: THAI CVVC-VCCV | ||
|
|
||
| on: | ||
| workflow_dispatch: {} | ||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| using System; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be a .cs file |
||
| using System.Collections.Generic; | ||
| using System.IO; | ||
| using System.Linq; | ||
| using OpenUtau.Api; | ||
| using Serilog; | ||
|
|
||
| namespace OpenUtau.Plugin.Builtin { | ||
| /// <summary> | ||
| /// The Thai Arpasing Phonemizer. | ||
| /// <para> | ||
| /// Arpasing is a system that uses CMUdict as dictionary to convert Thai words to phoneme symbols. | ||
| /// See http://www.speech.cs.cmu.edu/cgi-bin/cmudict and https://arpasing.neocities.org/en/faq.html. | ||
| /// </para> | ||
| /// </summary> | ||
| [Phonemizer("Thai Arpasing Phonemizer", "THAI ARPA")] | ||
| public class ArpasingPhonemizer : LatinDiphonePhonemizer { | ||
| public ArpasingPhonemizer() { | ||
| try { | ||
| Initialize(); | ||
| } catch (Exception e) { | ||
| Log.Error(e, "Failed to initialize."); | ||
| } | ||
| } | ||
|
|
||
| protected override IG2p LoadG2p() { | ||
| var g2ps = new List<IG2p>(); | ||
|
|
||
| // Load dictionary from plugin folder. | ||
| string path = Path.Combine(PluginDir, "Thai arpasing.yaml"); | ||
| if (!File.Exists(path)) { | ||
| Directory.CreateDirectory(PluginDir); | ||
| File.WriteAllBytes(path, Data.Resources.arpasing_template); | ||
| } | ||
| g2ps.Add(G2pDictionary.NewBuilder().Load(File.ReadAllText(path)).Build()); | ||
|
|
||
| // Load dictionary from singer folder. | ||
| if (singer != null && singer.Found && singer.Loaded) { | ||
| string file = Path.Combine(singer.Location, "arpasing.yaml"); | ||
| if (File.Exists(file)) { | ||
| try { | ||
| g2ps.Add(G2pDictionary.NewBuilder().Load(File.ReadAllText(file)).Build()); | ||
| } catch (Exception e) { | ||
| Log.Error(e, $"Failed to load {file}"); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| // Load base g2p. | ||
| g2ps.Add(new ArpabetG2p()); | ||
|
|
||
| return new G2pFallbacks(g2ps.ToArray()); | ||
| } | ||
|
|
||
| protected override Dictionary<string, string[]> LoadVowelFallbacks() { | ||
| return "aa=ah,ae;ae=ah,aa;ah=aa,ae;ao=ow;ow=ao;eh=ae;ih=iy;iy=ih;uh=uw;uw=uh;aw=ao".Split(';') | ||
| .Select(entry => entry.Split('=')) | ||
| .ToDictionary(parts => parts[0], parts => parts[1].Split(',')); | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.