We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4939dd2 commit 1acc622Copy full SHA for 1acc622
lib/active_intelligence/tts/mock_adapter.rb
@@ -5,6 +5,8 @@ module TTS
5
class MockAdapter < Adapter
6
7
def generate(_text, _options = {})
8
+ return nil if settings[:path].nil?
9
+
10
return File.open(settings[:path]).read
11
end
12
0 commit comments