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

add description code example #4

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
# PHP wrapper for eSpeak NG

### About eSpeak NG
## About eSpeak NG

eSpeak is a free and open-source, cross-platform, compact, software speech synthesizer.

### About eSpeak NG in this project
## About eSpeak NG in this project

Thinking about accessibility for visually impaired users when they need to fill out the contact form. We decided to implement the eSpeak NG library, which has the functionality to speak captcha characters.

### Library Documentation
## Example

```php
header('Content-Type: audio/wav');
header('Content-Disposition: inline;filename=captcha.wave');

echo (new Espeak())
->setOption('stdout')
->setOption('s', '110')
->setOption('v', (new Espeak())->getVoiceCode($_SERVER['HTTP_ACCEPT_LANGUAGE']))
->execute('Hello World');
```

## Library Documentation

https://github.com/espeak-ng/espeak-ng