What presets are
Presets let you save and reuse common synthesis parameter combinations.Group speed, pitch, and intonation into reusable sets to keep output quality consistent across multiple clips.
Overview
The Laravel VOICEVOX preset feature is a native implementation backed by VOICEVOX Core. Preset data is persisted as JSON atstorage/voicevox/presets.json.
It uses storage independent from the official VOICEVOX engine, so presets created on the Laravel side are not reflected in the official engine (and vice versa).
Configuration
By default, presets are saved tostorage/voicevox/presets.json. To use another path, update config/voicevox.php.
Preset structure
Basic usage
Create a preset
Get all presets
Find a preset by ID
Update a preset
Delete a preset
Synthesize with a preset
Use thetalk() helper or the Engine API /audio_query_from_preset endpoint.
talk() helper
Pass a preset ID to talk(preset:). The normal style ID is ignored in this mode.
Access via Engine API
Get all presets
Add a preset
Update a preset
Delete a preset
Generate audio query from a preset
Parameter reference
speedScale: 0.5 to 2.0pitchScale: -0.15 to 0.15intonationScale: 0.0 to 2.0volumeScale: 0.0 to 2.0prePhonemeLength: 0.0 to 1.5 secondspostPhonemeLength: 0.0 to 1.5 seconds
Notes
- Set preset
idto0to auto-assign an unused ID. - Include both
speaker_uuidandstyle_idin each preset.
Troubleshooting
Presets are not saved
- Check write permissions for the storage directory.
- Confirm
storage/voicevox/presets.jsonis created correctly.