001 002/* 003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.twilio.twiml; 009 010/** 011 * TwiML <code><Say></code> verb. 012 */ 013public class Say implements GatherVerb { 014 015 public static final int DEFAULT_LOOP = 1; 016 017 private Voice voice = Voice.MAN; 018 private Language language = Language.EN; 019 private int loop = DEFAULT_LOOP; 020 private String text; 021 022 public Say() { 023 } 024 025 public Say(String text) { 026 this.setText(text); 027 } 028 029 public Say(String text, Language language, Voice voice) { 030 this(text); 031 this.setLanguage(language); 032 this.setVoice(voice); 033 } 034 035 public Voice getVoice() { 036 return this.voice; 037 } 038 public void setVoice(Voice voice) { 039 this.voice = voice; 040 } 041 042 public Language getLanguage() { 043 return this.language; 044 } 045 public void setLanguage(Language language) { 046 this.language = language; 047 } 048 049 public int getLoop() { 050 return this.loop; 051 } 052 public void setLoop(int loop) { 053 this.loop = loop; 054 } 055 056 public String getText() { 057 return this.text; 058 } 059 public void setText(String text) { 060 this.text = text; 061 } 062} 063