If you do not want your code to break when no implementation is found, check the DependencyService first if it has a implementation available.
You can do this by a simple check if it is not null.
var speaker = DependencyService.Get<ITextToSpeech>();
if (speaker != null)
{
speaker....