Truly independent web browser
LibWeb: Return the voices of SpeechSynthesis as a span
Shannon Bootha1938fb35f1c
diff --git a/Libraries/LibWeb/Speech/SpeechSynthesis.cpp b/Libraries/LibWeb/Speech/SpeechSynthesis.cppindex cd5cff59df7..1386acb520a 100644--- a/Libraries/LibWeb/Speech/SpeechSynthesis.cpp+++ b/Libraries/LibWeb/Speech/SpeechSynthesis.cpp@@ -48,7 +48,7 @@ void SpeechSynthesis::cancel()}// https://wicg.github.io/speech-api/#dom-speechsynthesis-getvoices-Vector<GC::Ref<SpeechSynthesisVoice>> const& SpeechSynthesis::get_voices() const+ReadonlySpan<GC::Ref<SpeechSynthesisVoice>> SpeechSynthesis::get_voices() const{// FIXME: Populate m_voices with available synthesis voices.return m_voices;diff --git a/Libraries/LibWeb/Speech/SpeechSynthesis.h b/Libraries/LibWeb/Speech/SpeechSynthesis.hindex a4613ebaf6d..bb47ef98f9e 100644--- a/Libraries/LibWeb/Speech/SpeechSynthesis.h+++ b/Libraries/LibWeb/Speech/SpeechSynthesis.h@@ -36,7 +36,7 @@ public:void cancel();- Vector<GC::Ref<SpeechSynthesisVoice>> const& get_voices() const;+ ReadonlySpan<GC::Ref<SpeechSynthesisVoice>> get_voices() const;private:explicit SpeechSynthesis();