Closed j-ixcayau closed 2 weeks ago
wow
This is a must have.
Note that this is needed since commit https://github.com/dlutton/flutter_tts/commit/3cb449d69238f478fe4635ad3a195c10d55b7a5b broke the base behavior :(
If you have this issue and this pull request is not merged, you should use version 4.0.0 of the plugin !
flutter_tts: 4.0.0
I've seen this just before updating my app and plugin version... Most users using this plugin will have their base behavior broken when upgrading the plugin version because of the change of behavior of synthesizeToFile method not allowing full path by default...
=> This pull request will allow us to upgrade the plugin version but will not fix base behavior being broken by the commit of 4.0.1 :(
Summary
This PR introduces an
isFullPath
parameter to thesynthesizeToFile
function, enabling more flexible handling of file paths based on business logic requirements.Details
isFullPath
parameter tosynthesizeToFile
.isFullPath
parameter defaults tofalse
, ensuring backward compatibility with existing projects.Compatibility
The addition of
isFullPath
is non-disruptive. Existing implementations ofsynthesizeToFile
will continue to function as expected without any modifications, due to the optional nature of the new parameter.Testing
Verified that the
synthesizeToFile
function behaves correctly with and without theisFullPath
parameter in various scenarios.