Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JSON serialization issue with numpy.float32 values in voicevox se…
…rver This commit introduces a new utility function `convert_to_float` that recursively converts numpy.float32 values to Python's native float type. This change is necessary because numpy.float32 values are not serializable by Python's json library, which causes issues when these values need to be sent as JSON responses from the voicevox server. The `convert_to_float` function is now applied to `accent_phrases` after they are generated by the engine, ensuring that all numeric values are in a format compatible with JSON serialization standards. This update ensures that the server can handle serialization of voice properties without encountering errors due to data type compatibility issues with JSON.
- Loading branch information