At a young age, he was already showing unusual musical talent, and by eleven he was playing violin for an opera company, for which he wrote Fantasía para violín. His family finances enabled him to study in Paris. In 1880 he was admitted to the Théâtre Lyrique orchestra, where he began studying composition and instrumentation, but also law, in order to please his parents. Although since he was small he showed great liking and aptitudes for the music, he had to follow, by paternal decision, a Law career, which he finished in Madrid in 1885. The growing attraction he felt for art made him abandon those activities to give himself entirely to music, beginning with a trip that he made to Italy, performing as conductor at the Espezzia theater with the opera Lucrezia Borgia. He returned to Madrid, where he studied composition at the Madrid Royal Conservatory with Emilio Arrieta whilst playing in the Teatro de la Zarzuela orchestra. In 1895 he was a director at the Spanish Teatro Real. In 1896, he was the director of the Concert Academy of the Royal Theater. He also ran the Singing Academy with extraordinary success, not only in the formation of notable Spanish artists, but in the advice of the most famous of foreigners who, taking advantage of his performances in the country, came to the competent direction of Alvira to review their repertoires, strengthen or retrieve abilities or correct deficiencies. Among those who marched past those classrooms and took the advice and lessons of Alvira during the thirty-two years in which he exercised the position. After 1898 he was the director of Orfeon Ecos de Madrid. In the 1900s almost was a broker of Bolsa de Madrid. He also taught singing in Madrid, and he published Cómo aprender a cantar como cantaban los de antes, or "How to learn to sing like those singers from the past", a handbook for singing teachers. His works in the Royal Theatre of Spain are many: Hansel and Gretel, El oro del Rin, Loreley, Luisa, Mona Lisa, Yolanda, Jardín de oriente, La novia vendida, La virgen de mayo. These activities of the Aragonese teacher not only hinder his work as a composer, as will be seen later in his list of works, but allowed him to undertake a tough business whose realization was his most beloved desire: to widen the scopes and possibilities of the Spanish lyrical scene with the translation and adaptation of famous works. His great knowledge of the demands and difficulties of vocalization, his vast culture and the perfect command of several languages, came together in Alvira for this attempt, to carry it out, and paid off for the excellent versions he made and remained unpublished, of The Barber of Seville, Carmen, Tosca, La traviata, Prince Igor, La Africana, The Master Singers of Nürnberg y Rigoletto. He married Aurelia Sánchez Bueno in 1909, with whom he would have two children. His niece was the well-known actress Carmen Sánchez. His daughter Mary Carmen Alvira was a famous musician in the Spanish international orchestra and she played in the orchestra of the Royal Theatre of Zarzuela for many years.
When his mother-in-law died with whom he would rest in the same grave, he inherited all the decorations from his father-in-law the famous military national hero.