Sets the speaking value of the client.

@param bool $speaking Whether the client is speaking or not.

@return bool Whether the client is speaking or not.
763312
public function setSpeaking($speaking = true)
    {
        $deferred = new Deferred();

        if ($this->speaking == $speaking) {
            $deferred->resolve();

            return $deferred->promise();
        }

        if (! $this->ready) {
            $deferred->reject(new \Exception('Voice Client is not ready.'));

            return $deferred->promise();
        }

        $this->send([
            'op' => Op::VOICE_SPEAKING,
            'd'  => [
                'speaking' => $speaking,
                'delay'    => 0,
            ],
        ]);

        $this->speaking = $speaking;

        $deferred->resolve();

        return $deferred->promise();
    }
165733
public function setLanguage($v)
    {
        if ($v !== null && is_string($v)) {
            $v = (string) $v;
        }

        $this->language = $v;

        return $this;
    }
292396
public function set($lang) {
		if ($this->isValid($lang)) {
			$this->_language = $lang;
			$this->_l10n = $this->getL10n();

			// switch the locales
			$this->setLocale($this->_l10n['keys']);

			// clear content because language has changed
			$this->_content = null;
			return true;
		}
		return false;
	}
1068082
public function setVoice($voice)
	{
		if (is_string($voice)) {
			$this->voice = $voice;
		} else if (is_resource($voice)) {
			$this->addMultipart("voice", $voice);
			$this->voice = "attach://voice";
		} else if ($voice instanceof InputFile) {
			$this->addMultipart("voice", $voice->getFile());
			$this->voice = "attach://audio";
		}
	}
961261
public function setTLS($isEnabled)
    {
        if (!is_bool($isEnabled)) {
            throw new InvalidArgumentException(
                sprintf('%s only accepts a boolean', __FUNCTION__)
            );
        }

        $this->tls = (bool)$isEnabled;

        return $this;
    }
1078023
public function false()
    {
        $message = ['%s is {{not|}} false', $this->value];
        $this->assert(($this->value === false), $message);

        return $this;
    }
1260106
public function setLanguage($lang)
    {
      if (isset($this->commonUploadErrors[$lang])) {
        $this->language = $lang;
      } else {
        $this->error = $this->commonUploadErrors[$this->language]['ERROR_09'];
      }

      return $this;
    }
1272468
public function setEncoding($encoding)
    {
        if (strlen($encoding) == 0) {
            throw new \InvalidArgumentException(sprintf('Encoding should not be empty'));
        }

        $this->encoding = $encoding;

        return $this;
    }
701318
public static function setLanguage($language) {

		if(false === is_string($language)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($language)), E_USER_ERROR);
		}

		self :: $language = $language;
	}
53205
public function setLang( $lang ) {
		if ( !IntuitionUtil::nonEmptyStr( $lang ) ) {
			return false;
		}
		$this->currentLanguage = $this->normalizeLang( $lang );
		return true;
	}
16144
public function set($key, $value)
    {
        if (strpos($key, '.') !== false) {
            $this->setSubValue($key, $value);
        } else {
            $this->setByKey($key, $value);
        }

        $this->resetLang();
    }
215260
public function setEnabled(bool $enabled = true): bool
    {
        $was = $this->enabled;
        $this->enabled = $enabled;

        return $was;
    }
137290
public function setVoice($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1\PartOfSpeech_Voice::class);
        $this->voice = $var;

        return $this;
    }
383571
public function setLanguage(CNabuLanguage $nb_language)
    {
        if ($nb_language->isValueNumeric(NABU_LANG_FIELD_ID) || $nb_language->isValueGUID(NABU_LANG_FIELD_ID)) {
            $nb_language_id = $nb_language->getValue(NABU_LANG_FIELD_ID);
            $this->languages_list->addItem($nb_language);
        }
    }
649845
public function setParsed(bool $parsed = true): Result
    {
        $this->parsed = (boolean) $parsed;
        return $this;
    }
1153112
public function setLanguage($lang = null)
    {
        $this->_iLanguage = (int) $lang;
        // reset
        $this->_sViewTable = false;
    }
119091
public function setCurrency($pricesCurrency = 'RON')
    {
        $pricesCurrency = strtoupper(trim($pricesCurrency));
        switch ($pricesCurrency) {
            case 'ROL':
                $this->currency = 'ROL';
                break;

            case 'EUR':
                $this->currency = 'EUR';
                break;

            case 'USD':
                $this->currency = 'USD';
                break;

            case 'GBP':
                $this->currency = 'GBP';
                break;

            case 'BGN':
                $this->currency = 'BGN';
                break;

            case 'RON':
            default:
                $this->currency = 'RON';
        }

        return true;
    }