tests/testthat/test_polly.R

svc <- paws::polly()

test_that("describe_voices", {
  expect_error(svc$describe_voices(), NA)
})

test_that("list_lexicons", {
  expect_error(svc$list_lexicons(), NA)
})

test_that("list_speech_synthesis_tasks", {
  expect_error(svc$list_speech_synthesis_tasks(), NA)
})

test_that("list_speech_synthesis_tasks", {
  expect_error(svc$list_speech_synthesis_tasks(MaxResults = 20), NA)
})

Try the paws.machine.learning package in your browser

Any scripts or data that you put into this service are public.

paws.machine.learning documentation built on Sept. 12, 2023, 1:14 a.m.