From ba694d13734c65c0f3b5392769f093100c3f0867 Mon Sep 17 00:00:00 2001 From: Jeffrey Weitz Date: Thu, 30 Sep 2021 15:27:14 -0400 Subject: [PATCH 1/2] Fix MRCPSynth arguments --- mrcp.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mrcp.go b/mrcp.go index fff07c8..5148546 100644 --- a/mrcp.go +++ b/mrcp.go @@ -108,8 +108,11 @@ type SynthResult struct { func (a *AGI) MRCPSynth(prompt string, opts string) (res *SynthResult, err error) { var cause string res = new(SynthResult) - - ret, err := a.Exec([]string{"MRCPSynth", prompt, opts}...) + execOpts := []string{ + fmt.Sprintf(`"%s"`, prompt), + opts, + } + ret, err := a.Exec([]string{"MRCPSynth", strings.Join(execOpts, ",")}...) if err != nil { return } From d3c1db636fbabe70f0c56762f82cb30d8a498146 Mon Sep 17 00:00:00 2001 From: Jeffrey Weitz Date: Thu, 30 Sep 2021 18:12:31 -0400 Subject: [PATCH 2/2] module import change --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 2f5c1ab..10507c3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/CyCoreSystems/agi +module github.com/jeffdoubleyou/agi require github.com/pkg/errors v0.8.1