-
Notifications
You must be signed in to change notification settings - Fork 2
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
helppppp! #3
Comments
@Sarvinkhan ,
If you're using PowerShell Core v6 or later, it defaults to UTF-8 encoding. You can verify this by running:
If it's not UTF-8, add the following line to your PowerShell profile (
Even if PowerShell is set to UTF-8, the way you entered the phrase might not be interpreted correctly. $phrase = "سلام و درود بر شما"
$bytes = [Text.Encoding]::UTF8.GetBytes($phrase)
$encodedPhrase = [System.BitConverter]::ToString($bytes, [String]::Empty)
echo ($encodedPhrase -join "") | .piper.exe --model .modelsfa_IR-amir-medium.onnx --output_dir .outputs
This encodes the phrase as UTF-8, converts the bytes to a hexadecimal string for clarity, and then pipes it to the echo command. Ensure your PowerShell console uses a font that supports displaying Persian characters. Common options include Segoe UI or Lucida Sans Unicode. You can change the font in the console properties.
After running the command, check the output directory (.outputs) to see if the processed file contains the Persian characters correctly. |
if your discord channel is still available, eould please give me an invite link? |
my problem is when i want use the powershell to send farsi phrase to piper, the powershell does not support the persian unicode and i want to know that you proceed this project, how you overcome this because i cannot find any solution i the internet.
The text was updated successfully, but these errors were encountered: