Singing in native mode
Native-mode singing synthesis calls VOICEVOX CORE directly through PHP FFI.Score and Note structures are shared with client mode.
Prerequisites
- Complete Installation and Configuration
- Set up VOICEVOX Core for PHP
- Set
VOICEVOX_CORE_PATHin.env
s0.vvm is included in core.vvms in config/voicevox.php.
Create Score and Note
Basic usage
Score can be reused in both client and native modes.
Re-sync F0 and volume with tap()
tap() is useful in native song mode as well. Tune SongAudioQuery, then continue to generate().
Difference from client mode
| Item | Client Song | Native Song |
|---|---|---|
| Engine process | Required | Not required |
| FFI | Not required | Required |
| Entry API | Voicevox::song() | song() |
Score / Note | Shared | Shared |
For FFI fundamentals, see PHP FFI. For standalone core flow, see VOICEVOX Core for PHP Usage.
Next pages
Score and Note Deep Dive
See practical patterns for building and managing song chart data.
Client Song
Compare with HTTP client mode using the same score.
VOICEVOX for Laravel Overview
Review all modes and related pages in one place.