Skip to content

Windows 11 - talk-llama.exe - microphone is ok but error in audio generation. #1733

Open
@mirek190

Description

@mirek190

My command to run

talk-llama.exe -mw ggml-large-v3.bin -ml marcoroni-7b-v3.Q8_0.gguf -s speak.bat

Added speak.bat and speak.ps1 to the root folder

speak.bat

@powershell -ExecutionPolicy Bypass -F speak.ps1 %1 %2

speak.ps1

# Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
param(
  # voice options are David or Zira
  [Parameter(Mandatory=$true)][string]$voice,
  [Parameter(Mandatory=$true)][string]$text
)

Add-Type -AssemblyName System.Speech;
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer;
$speak.SelectVoice("Microsoft $voice Desktop");
$speak.Rate="0";
$speak.Speak($text);

But getting error during generating audio
error

llama_new_context_with_model: n_ctx      = 2048
llama_new_context_with_model: freq_base  = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init: VRAM kv self = 256.00 MB
llama_new_context_with_model: KV self size  =  256.00 MiB, K (f16):  128.00 MiB, V (f16):  128.00 MiB
llama_build_graph: non-view tensors processed: 676/676
llama_new_context_with_model: compute buffer total size = 159.19 MiB
llama_new_context_with_model: VRAM scratch buffer: 156.00 MiB
llama_new_context_with_model: total VRAM used: 7617.83 MiB (model: 7205.83 MiB, context: 412.00 MiB)

SDL_main: processing, 4 threads, lang = en, task = transcribe, timestamps = 0 ...

init: found 1 capture devices:
init:    - Capture device #0: 'Headset (WH-1000XM4)'
init: attempt to open default capture device ...
init: obtained spec for input device (SDL Id = 2):
init:     - sample rate:       16000
init:     - format:            33056 (required: 33056)
init:     - channels:          1 (required: 1)
init:     - samples per frame: 1024

SDL_main : initializing - please wait ...
SDL_main : done! start speaking in the microphone

Georgi: Hello.
LLaMA: Hello Georgi! How may I help you today?

(This transcript has been edited for clarity)

---

Georgi:Exception calling "SelectVoice" with "1" argument(s): "Cannot set voice. No matching voice is installed or the voice
was disabled."
At C:\AI_music\cpu\speak.ps1:10 char:1
+ $speak.SelectVoice("Microsoft $voice Desktop");
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

 Hi.
LLaMA: Hello Georgi! How can I assist you today?
Georgi:Exception calling "SelectVoice" with "1" argument(s): "Cannot set voice. No matching voice is installed or the voice
was disabled."
At C:\AI_music\cpu\speak.ps1:10 char:1
+ $speak.SelectVoice("Microsoft $voice Desktop");
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

Also cheeked manually under PowerShell and voices are present

 Add-Type -AssemblyName System.speech
 $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer
 $synth.GetInstalledVoices() | foreach { $_.VoiceInfo.Name }

Microsoft Zira Desktop
IVONA 2 Jan
Microsoft Hazel Desktop
Microsoft David Desktop
IVONA 2 Jacek
Microsoft Paulina Desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions