runapi-suno 0.5.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/runapi/suno/client.rb +4 -1
  4. data/lib/runapi/suno/resources/add_instrumental.rb +0 -7
  5. data/lib/runapi/suno/resources/add_samples.rb +0 -4
  6. data/lib/runapi/suno/resources/add_vocals.rb +0 -7
  7. data/lib/runapi/suno/resources/audio_action.rb +0 -1
  8. data/lib/runapi/suno/resources/audio_exports.rb +0 -7
  9. data/lib/runapi/suno/resources/blend_lyrics.rb +0 -1
  10. data/lib/runapi/suno/resources/boost_style.rb +0 -7
  11. data/lib/runapi/suno/resources/check_voice.rb +0 -7
  12. data/lib/runapi/suno/resources/convert_audio.rb +0 -7
  13. data/lib/runapi/suno/resources/cover_audio.rb +0 -7
  14. data/lib/runapi/suno/resources/create_mashup.rb +0 -7
  15. data/lib/runapi/suno/resources/extend_music.rb +0 -7
  16. data/lib/runapi/suno/resources/generate_artwork.rb +0 -7
  17. data/lib/runapi/suno/resources/generate_lyrics.rb +0 -7
  18. data/lib/runapi/suno/resources/generate_midi.rb +0 -7
  19. data/lib/runapi/suno/resources/generate_persona.rb +0 -7
  20. data/lib/runapi/suno/resources/generate_voice.rb +0 -7
  21. data/lib/runapi/suno/resources/get_timestamped_lyrics.rb +0 -7
  22. data/lib/runapi/suno/resources/music_from_sample.rb +0 -7
  23. data/lib/runapi/suno/resources/music_visualizations.rb +0 -7
  24. data/lib/runapi/suno/resources/personas.rb +0 -9
  25. data/lib/runapi/suno/resources/regenerate_validation_phrase.rb +0 -7
  26. data/lib/runapi/suno/resources/replace_section.rb +0 -7
  27. data/lib/runapi/suno/resources/separate_audio_stems.rb +0 -7
  28. data/lib/runapi/suno/resources/style_expansions.rb +0 -7
  29. data/lib/runapi/suno/resources/text_to_music.rb +0 -7
  30. data/lib/runapi/suno/resources/text_to_sound.rb +0 -7
  31. data/lib/runapi/suno/resources/text_to_speech.rb +34 -0
  32. data/lib/runapi/suno/resources/timestamped_lyrics.rb +0 -7
  33. data/lib/runapi/suno/resources/visualize_music.rb +0 -7
  34. data/lib/runapi/suno/resources/voice_to_validation_phrase.rb +0 -7
  35. data/lib/runapi/suno/resources/voices.rb +0 -7
  36. data/lib/runapi/suno/types/completed_responses.rb +4 -0
  37. data/lib/runapi/suno/types.rb +8 -3
  38. data/lib/runapi/suno.rb +1 -2
  39. metadata +4 -5
  40. data/lib/runapi/suno/contract_gen.rb +0 -2797
  41. data/lib/runapi/suno/validators.rb +0 -232
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 441d7e599ba7a9b1d3b2082d25c29354d65969a141ccd86a226dd45adf491586
4
- data.tar.gz: ba5300fad79eaacfbc2f410879393f7f89f222464f8951eedb5c2c69b4582627
3
+ metadata.gz: 4f39652bcca54d3338197e79279469e5cbb025ca5d863c691c571da32767db36
4
+ data.tar.gz: 04c78feee727c60a6e6fc6629bbda05328021f2bf4ec3ff73264d80d7c8f3607
5
5
  SHA512:
6
- metadata.gz: 8da511903f9c5df5c35e84fba5bbeb80f4d4bee40c54a663f74d5334c3bd4c9696be155a19366f0a577438377cbeec3ecac503a0174e8ce91a80f40ef112565c
7
- data.tar.gz: 43982e5a3d5791b1b0f3dd3bf41cb8b74026c8daa6ed02100df17d19f7603261cb343e161e5edb0ffb96b6171f442fb6df0275856de107bb3de22b15dbf8846c
6
+ metadata.gz: 92c554cfd9903d986d0f68bb946bba66585803193bf5e905e96a233e4aa5f3760427976ab84d34bc0eedcd537011b670acee49b72ca1188ab0cb1da95ff034ed
7
+ data.tar.gz: 90f47b3f1cf743f493ceae229d22e8d502661cf83810b68409c8f96417007c9bb79908170366e73c0088777ac55918eff39812e78ed258010a390ecbe6fe7899
data/README.md CHANGED
@@ -35,7 +35,7 @@ Use Ruby keyword arguments and the `RunApi::Suno` error classes when building mu
35
35
  - Model page: https://runapi.ai/models/suno
36
36
  - SDK docs: https://runapi.ai/docs/resources/sdks
37
37
  - Product docs: https://runapi.ai/docs/api/suno/text-to-music
38
- - Pricing and rate limits: https://runapi.ai/models/suno/v4
38
+ - Pricing and rate limits: https://runapi.ai/models/suno/v6
39
39
  - Provider comparison: https://runapi.ai/providers/suno
40
40
  - Full catalog: https://runapi.ai/models
41
41
  - Repository: https://github.com/runapi-ai/suno-sdk
@@ -9,7 +9,7 @@ module RunApi
9
9
  # client = RunApi::Suno::Client.new(api_key: "sk-your-api-key")
10
10
  # result = client.text_to_music.run(
11
11
  # prompt: "A chill lo-fi beat with soft vocals",
12
- # model: "suno-v4.5-plus"
12
+ # model: "suno-v6"
13
13
  # )
14
14
  class Client < RunApi::Core::Client
15
15
  # @return [Resources::TextToMusic] generates songs from a text prompt with configurable vocal mode, style, and persona
@@ -45,6 +45,8 @@ module RunApi
45
45
  attr_reader :create_mashup
46
46
  # @return [Resources::TextToSound] generates sound effects from a text description
47
47
  attr_reader :text_to_sound
48
+ # @return [Resources::TextToSpeech] generates spoken audio
49
+ attr_reader :text_to_speech
48
50
  # @return [Resources::VoiceToValidationPhrase] step 1 of voice cloning: extracts a validation phrase
49
51
  attr_reader :voice_to_validation_phrase
50
52
  # @return [Resources::RegenerateValidationPhrase] step 2 (optional) of voice cloning: requests a new phrase
@@ -95,6 +97,7 @@ module RunApi
95
97
  @replace_section = Resources::ReplaceSection.new(http)
96
98
  @create_mashup = Resources::CreateMashup.new(http)
97
99
  @text_to_sound = Resources::TextToSound.new(http)
100
+ @text_to_speech = Resources::TextToSpeech.new(http)
98
101
  @voice_to_validation_phrase = Resources::VoiceToValidationPhrase.new(http)
99
102
  @regenerate_validation_phrase = Resources::RegenerateValidationPhrase.new(http)
100
103
  @generate_voice = Resources::GenerateVoice.new(http)
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_add_instrumental!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -9,10 +9,6 @@ module RunApi
9
9
  ACTION = "add-samples"
10
10
 
11
11
  def create(options: nil, **params)
12
- if params[:end_seconds].to_f <= params[:start_seconds].to_f
13
- raise RunApi::Core::ValidationError, "end_seconds must be greater than start_seconds"
14
- end
15
-
16
12
  super
17
13
  end
18
14
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_add_vocals!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -10,7 +10,6 @@ module RunApi
10
10
 
11
11
  def create(options: nil, **params)
12
12
  params = compact_params(params)
13
- validate_contract!(CONTRACT.fetch(self.class::ACTION), params)
14
13
  request(:post, self.class::ENDPOINT, body: params, options: options)
15
14
  end
16
15
 
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_audio_exports!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,7 +22,6 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_contract!(CONTRACT["blend-lyrics"], params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
@@ -18,15 +18,8 @@ module RunApi
18
18
 
19
19
  def run(options: nil, **params)
20
20
  params = compact_params(params)
21
- validate_params!(params)
22
21
  request(:post, ENDPOINT, body: params, options: options)
23
22
  end
24
-
25
- private
26
-
27
- def validate_params!(params)
28
- Validators.validate_boost_style!(params, self)
29
- end
30
23
  end
31
24
  end
32
25
  end
@@ -19,15 +19,8 @@ module RunApi
19
19
 
20
20
  def run(options: nil, **params)
21
21
  params = compact_params(params)
22
- validate_params!(params)
23
22
  request(:post, ENDPOINT, body: params, options: options)
24
23
  end
25
-
26
- private
27
-
28
- def validate_params!(params)
29
- Validators.validate_check_voice!(params, self)
30
- end
31
24
  end
32
25
  end
33
26
  end
@@ -24,19 +24,12 @@ module RunApi
24
24
 
25
25
  def create(options: nil, **params)
26
26
  params = compact_params(params)
27
- validate_params!(params)
28
27
  request(:post, ENDPOINT, body: params, options: options)
29
28
  end
30
29
 
31
30
  def get(id, options: nil)
32
31
  request(:get, "#{ENDPOINT}/#{id}", options: options)
33
32
  end
34
-
35
- private
36
-
37
- def validate_params!(params)
38
- Validators.validate_convert_audio!(params, self)
39
- end
40
33
  end
41
34
  end
42
35
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_cover_audio!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_create_mashup!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_extend_music!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_generate_artwork!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_generate_lyrics!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_generate_midi!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -19,15 +19,8 @@ module RunApi
19
19
 
20
20
  def run(options: nil, **params)
21
21
  params = compact_params(params)
22
- validate_params!(params)
23
22
  request(:post, ENDPOINT, body: params, options: options)
24
23
  end
25
-
26
- private
27
-
28
- def validate_params!(params)
29
- Validators.validate_generate_persona!(params, self)
30
- end
31
24
  end
32
25
  end
33
26
  end
@@ -25,19 +25,12 @@ module RunApi
25
25
 
26
26
  def create(options: nil, **params)
27
27
  params = compact_params(params)
28
- validate_params!(params)
29
28
  request(:post, ENDPOINT, body: params, options: options)
30
29
  end
31
30
 
32
31
  def get(id, options: nil)
33
32
  request(:get, "#{ENDPOINT}/#{id}", options: options)
34
33
  end
35
-
36
- private
37
-
38
- def validate_params!(params)
39
- Validators.validate_generate_voice!(params, self)
40
- end
41
34
  end
42
35
  end
43
36
  end
@@ -18,15 +18,8 @@ module RunApi
18
18
 
19
19
  def run(options: nil, **params)
20
20
  params = compact_params(params)
21
- validate_params!(params)
22
21
  request(:post, ENDPOINT, body: params, options: options)
23
22
  end
24
-
25
- private
26
-
27
- def validate_params!(params)
28
- Validators.validate_get_timestamped_lyrics!(params, self)
29
- end
30
23
  end
31
24
  end
32
25
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_music_from_sample!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_music_visualizations!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -23,7 +23,6 @@ module RunApi
23
23
 
24
24
  def run(options: nil, **params)
25
25
  params = compact_params(params)
26
- validate_params!(params)
27
26
  run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
28
27
  end
29
28
 
@@ -32,13 +31,11 @@ module RunApi
32
31
  # and status, plus Location and Retry-After response headers.
33
32
  def create(options: nil, **params)
34
33
  params = compact_params(params)
35
- validate_params!(params)
36
34
  request(:post, ENDPOINT, body: params, options: options)
37
35
  end
38
36
 
39
37
  def subscribe(options: nil, **params)
40
38
  params = compact_params(params)
41
- validate_params!(params)
42
39
  subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
43
40
  end
44
41
 
@@ -46,12 +43,6 @@ module RunApi
46
43
  def get(id, options: nil)
47
44
  request(:get, "#{ENDPOINT}/#{id}", options: options, response_class: RESOURCE_RESPONSE_CLASS)
48
45
  end
49
-
50
- private
51
-
52
- def validate_params!(params)
53
- Validators.validate_personas!(params, self)
54
- end
55
46
  end
56
47
  end
57
48
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_regenerate_validation_phrase!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_replace_section!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_separate_audio_stems!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -17,15 +17,8 @@ module RunApi
17
17
 
18
18
  def run(options: nil, **params)
19
19
  params = compact_params(params)
20
- validate_params!(params)
21
20
  request(:post, ENDPOINT, body: params, options: options)
22
21
  end
23
-
24
- private
25
-
26
- def validate_params!(params)
27
- Validators.validate_style_expansions!(params, self)
28
- end
29
22
  end
30
23
  end
31
24
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_text_to_music!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_text_to_sound!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RunApi
4
+ module Suno
5
+ module Resources
6
+ # Generates spoken audio from a description or an exact script.
7
+ class TextToSpeech
8
+ include RunApi::Core::ResourceHelpers
9
+
10
+ ENDPOINT = "/api/v1/suno/text_to_speech"
11
+ RESPONSE_CLASS = Types::TextToSpeechResponse
12
+ COMPLETED_RESPONSE_CLASS = Types::CompletedTextToSpeechResponse
13
+
14
+ def initialize(http)
15
+ @http = http
16
+ end
17
+
18
+ def run(options: nil, **params)
19
+ task = create(options: options, **params)
20
+ poll_until_complete { get(task.id, options: options) }
21
+ end
22
+
23
+ def create(options: nil, **params)
24
+ params = compact_params(params)
25
+ request(:post, ENDPOINT, body: params, options: options)
26
+ end
27
+
28
+ def get(id, options: nil)
29
+ request(:get, "#{ENDPOINT}/#{id}", options: options)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -17,15 +17,8 @@ module RunApi
17
17
 
18
18
  def run(options: nil, **params)
19
19
  params = compact_params(params)
20
- validate_params!(params)
21
20
  request(:post, ENDPOINT, body: params, options: options)
22
21
  end
23
-
24
- private
25
-
26
- def validate_params!(params)
27
- Validators.validate_timestamped_lyrics!(params, self)
28
- end
29
22
  end
30
23
  end
31
24
  end
@@ -24,19 +24,12 @@ module RunApi
24
24
 
25
25
  def create(options: nil, **params)
26
26
  params = compact_params(params)
27
- validate_params!(params)
28
27
  request(:post, ENDPOINT, body: params, options: options)
29
28
  end
30
29
 
31
30
  def get(id, options: nil)
32
31
  request(:get, "#{ENDPOINT}/#{id}", options: options)
33
32
  end
34
-
35
- private
36
-
37
- def validate_params!(params)
38
- Validators.validate_visualize_music!(params, self)
39
- end
40
33
  end
41
34
  end
42
35
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_voice_to_validation_phrase!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end