Skip to content
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

cmake: add ESPEAK_NG_VERSION #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mudler
Copy link

@mudler mudler commented Nov 28, 2023

this allows to specify a custom espeak-ng version

See also: mudler/LocalAI#1356
Reasoning: rhasspy/espeak-ng#1 broke building against espeak-ng, and would ease out things if we could pinpoint to specific versions so to gate changes at CI level

cc @synesthesiam

this lets to specify a custom espeak-ng version

See also: mudler/LocalAI#1356
@csukuangfj
Copy link

I suggest that it uses a release tag from https://github.com/rhasspy/espeak-ng/releases

The git sha1 is not friendly to human. A git tag is easier to read.

@mudler
Copy link
Author

mudler commented Nov 29, 2023

I suggest that it uses a release tag from https://github.com/rhasspy/espeak-ng/releases

The git sha1 is not friendly to human. A git tag is easier to read.

I tend to disagree, both sha1 and tags are handy. However, the proposed solution works for both, so it shouldn't really matter.

@csukuangfj
Copy link

@mudler
Copy link
Author

mudler commented Nov 29, 2023

https://github.com/rhasspy/espeak-ng/archive/refs/tags/2023.9.7-4.zip

https://github.com/rhasspy/espeak-ng/archive/5c3a2e79c24f92cd408d067a9aa47553927ec891.zip

The above two links point to the same file. I think the first one is more descriptive.

right, but doesn't really matter in term of this PR. You are free to express both with this implementation - it's up to you if you want to pick a sha or a tag.

@csukuangfj
Copy link

This PR is using

URL "https://github.com/rhasspy/espeak-ng/archive/${ESPEAK_NG_VERSION}.zip"

I suggest using

URL "https://github.com/rhasspy/espeak-ng/archive/refs/tags/${ESPEAK_NG_VERSION}.zip"

@mudler
Copy link
Author

mudler commented Nov 29, 2023

This PR is using

URL "https://github.com/rhasspy/espeak-ng/archive/${ESPEAK_NG_VERSION}.zip"

I suggest using

URL "https://github.com/rhasspy/espeak-ng/archive/refs/tags/${ESPEAK_NG_VERSION}.zip"

You can set refs/tags as part of ESPEAK_NG_VERSION. What's the value added in not allowing to specify Sha here? I personally find it useful and I'd like to be able to pinpoint to sha as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants